#include "gobj/comm.h"
#include "gobj/ids.h"
#include "gobj/errors.h"
#include "gobj/utils.h"
Compounds | |
| struct | Gj_CommParam_struct |
| struct | Gj_Comm_struct |
Typedefs | |
| typedef enum gj_CommMode_enum | gj_CommMode |
| Communction mode enum. More... | |
| typedef enum gj_CommandNum_enum | gj_CommandNum |
| Command numbers for GJ_COMMMODE_NORMAL, proto ID_COMMMODENORMALPROTO_STD. More... | |
Enumerations | |
| enum | gj_CommMode_enum { GJ_COMMMODE_NORMAL } |
| Communction mode enum. More... | |
| enum | gj_CommandNum_enum { GJ_COMMANDNUM_NONE = 0, GJ_COMMANDNUM_END = 1, GJ_COMMANDNUM_GETSYSID } |
| Command numbers for GJ_COMMMODE_NORMAL, proto ID_COMMMODENORMALPROTO_STD. More... | |
Functions | |
| int | gj_comm_clientHandshake (Gj_Ctx* ctx, Gj_Comm* comm) |
| Do the client-side hand-shake. More... | |
| int | gj_comm_serverHandshake (Gj_Ctx* ctx, Gj_Comm* comm) |
| Do the server-side hand-shake. More... | |
| Gj_Comm* | Gj_comm_new (Gj_Ctx* ctx, Gj_Id* iface, char* address, Gj_CommParam* param) |
| Create a new communication structure. More... | |
| Gj_Comm* | Gj_comm_newFormStream (Gj_Ctx* ctx, Gj_Stream* stream, Gj_CommParam* param) |
| int | Gj_comm_delete (Gj_Ctx* ctx, Gj_Comm* comm) |
| Delete a communication structure. More... | |
| int | gj_comm_sendCommand (Gj_Ctx* ctx, Gj_Comm* comm, gj_CommandNum command) |
| Send a command. More... | |
| gj_CommandNum | gj_comm_recvCommand (Gj_Ctx* ctx, Gj_Comm* comm) |
| Receive a command. More... | |
| int | Gj_comm_processCommand (Gj_Ctx* ctx, Gj_Comm* comm, Gj_Bool* abort) |
| Wait for a command and process it. More... | |
| int | Gj_comm_end (Gj_Ctx* ctx, Gj_Comm* comm) |
| End a communication. More... | |
| int | gj_comm_end_serve (Gj_Ctx* ctx, Gj_Comm* comm) |
| Serve an 'Gj_comm_end' command. More... | |
| int | Gj_comm_getSysid (Gj_Ctx* ctx, Gj_Comm* comm, Gj_Sysid* sysid) |
| Get the sysid of the remote system. More... | |
| int | gj_comm_getSysid_serve (Gj_Ctx* ctx, Gj_Comm* comm) |
| Serve an 'Gj_comm_getSysid' command. More... | |
Variables | |
| char | gj_CommandNames [][50] |
| Command names for GJ_COMMMODE_NORMAL, proto ID_COMMANDNORMALPROTO_STD. More... | |
|
|
Communction mode enum.
For internal use only. |
|
|
Command numbers for GJ_COMMMODE_NORMAL, proto ID_COMMMODENORMALPROTO_STD.
For internal use only. |
|
|
Communction mode enum.
For internal use only. |
|
|
Command numbers for GJ_COMMMODE_NORMAL, proto ID_COMMMODENORMALPROTO_STD.
For internal use only. |
|
|
Do the client-side hand-shake.
|
|
|
Do the server-side hand-shake.
|
|
|
Create a new communication structure.
If
|
|
|
Delete a communication structure.
|
|
|
Send a command.
For internal use only. |
|
|
Receive a command.
For internal use only. |
|
|
Wait for a command and process it.
|
|
|
End a communication.
|
|
|
Serve an 'Gj_comm_end' command.
For internal use only. |
|
|
Get the sysid of the remote system.
|
|
|
Serve an 'Gj_comm_getSysid' command.
For internal use only. |
|
|
Initializer: {
"none",
"end",
"getSysid"
}
For internal use only. |
1.2.1 written by Dimitri van Heesch,
© 1997-2000