GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > NMSG / V4-0-1
Constituent: nmsg     Tag: sun-gcc
This graph shows which files directly or indirectly include this file:
Data Structures | |
struct | nmsgHead_s |
Network message header. More... | |
struct | nmsgBuff_s |
Prototype message buffer. More... | |
struct | nmsgStats_s |
Network statistics block. More... | |
Typedefs | |
typedef nmsgHead_s | nmsgHead_t |
Network message header. | |
typedef nmsgBuff_s | nmsgBuff_t |
Prototype message buffer. | |
typedef nmsgStats_s | nmsgStats_t |
Network statistics block. | |
typedef int | nmsgConnCB_t (void *hndl, void **uParm) |
Connect callback routine. | |
typedef int | nmsgDiscCB_t (void *hndl, void **uParm) |
Disconnect callback routine. | |
typedef int | nmsgRcveCB_t (void *hndl, void **uParm, nmsgBuff_t *msg, char **dataP) |
Receive message callback routine. | |
Enumerations | |
enum | { NMSG_MAGIC = 0x6e4d7347 } |
Magic word value definition. More... | |
enum | { NMSG_SUCCESS = 0, NMSG_NOMEMORY = 1, NMSG_UNKNHOST = 2, NMSG_NOSEMCRE = 3, NMSG_NOTASKCR = 4, NMSG_NOTCONN = 5, NMSG_INVSEMA = 6, NMSG_DISCONN = 7, NMSG_TIMEDOUT = 8, NMSG_INVFDESC = 9, NMSG_INVHNDL = 10, NMSG_OPNTPERM = 11, NMSG_FILENFND = 12, NMSG_IOERROR = 13, NMSG_NOACCESS = 14, NMSG_NOSCHDEV = 15, NMSG_NOTADIR = 16, NMSG_NOTAFILE = 17, NMSG_XSFILDVC = 18, NMSG_XSFILOPN = 19, NMSG_NAMELONG = 20, NMSG_RDONLYFS = 21, NMSG_NETUNRCH = 22, NMSG_NETRESET = 23, NMSG_CONNABRT = 24, NMSG_CONNRSET = 25, NMSG_NOBUFSPC = 26, NMSG_SOCKCONN = 27, NMSG_SNOTCONN = 28, NMSG_SHUTDOWN = 29, NMSG_CONNTMO = 30, NMSG_CONNREF = 31, NMSG_NETDOWN = 32, NMSG_TOODEEP = 33, NMSG_HSTUNRCH = 34, NMSG_HOSTDOWN = 35, NMSG_UNSUPPRO = 36, NMSG_UNSUPPRF = 37, NMSG_PROTOTYP = 38, NMSG_UNSUPADF = 39, NMSG_NOSTREAM = 40, NMSG_ADDRUSED = 41, NMSG_ADDRUNAV = 42, NMSG_ALREADY = 43, NMSG_BADFNMBR = 44, NMSG_INPROGRS = 45, NMSG_OPRNINTR = 46, NMSG_INVDARG = 47, NMSG_NOTASOCK = 48, NMSG_OPNTSUPP = 49, NMSG_BADADDRS = 50, NMSG_PROTOERR = 51, NMSG_TRYAGAIN = 52, NMSG_MSGLONG = 53, NMSG_BRKNPIPE = 54, NMSG_UNKNERR = 55 } |
Function return codes. More... | |
Functions | |
int | nmsgCheck (void *hndl) |
Check a network connection handle. | |
int | nmsgClose (void *hndl, int force) |
Terminate a message client or server. | |
int | nmsgConnect (void **hndl, const char *node, int port) |
Connect to a message server. | |
int | nmsgConnectAsy (void **hndl, const char *node, int port, int prio, nmsgConnCB_t connRtn, nmsgDiscCB_t discRtn, void *uParm) |
Connect asynchronously (robustly) to a message server. | |
const char * | nmsgErrorMsg (int status) |
Obtain the text of an error message. | |
void | nmsgErrorReport (int status, const char *func) |
Display an error message. | |
int | nmsgListen (void **hndl, int port, int maxConn, int maxData, int prio, nmsgConnCB_t connRtn, nmsgDiscCB_t discRtn, nmsgRcveCB_t rcveRtn, void *uParm) |
Establish a message server. | |
int | nmsgRemoteIP (void *hndl, int *ip) |
Get the IP address of the remote end. | |
int | nmsgSend (void *hndl, nmsgBuff_t *msg) |
Send a message and return immediately. | |
int | nmsgSendW (void *hndl, nmsgBuff_t *msg, nmsgBuff_t **replyP, nmsgBuff_t *reply, int maxData) |
Send a message and receive reply. | |
int | nmsgStats (void *hndl, nmsgStats_t *stats) |
Get connection statistics. | |
int | nmsgWait (void *hndl, nmsgBuff_t **replyP, nmsgBuff_t *reply, int maxData) |
Wait for a reply to a sent message. |
|
Connect callback routine. This routine, if supplied to the listen or asynchronous connection routine, is called whenever a network connection is established.
|
|
Disconnect callback routine. This routine, if supplied to the listen or asynchronous connection routine, is called whenever the network connection is broken.
|
|
Receive message callback routine. This routine is called whenever a message is received on the server (listener) side of a network connection. It processes the message and generates a reply. Normally the whole reply is placed in the area occupied by the incoming message, and can contain data up to the maximum length established in the original listen call. However, the data portion of the reply may alternatively be supplied in a piece of allocated memory and has no restriction on its size in this case.
|
|
Magic word value definition.
|
|
|
Check a network connection handle. This routine checks whether a network handle is valid or not.
|
|
Terminate a message client or server. This routine closes a network connection or stops a network server.
|
|
Connect to a message server. This routine establishes a network connection to a message server.
|
|
Connect asynchronously (robustly) to a message server. This routine establishes a robust network connection to a message server. The connection is done asynchronously, and the attempt is retried periodically if the initial attempt fails, or if the connection is broken.
|
|
Obtain the text of an error message. This routine returns a pointer to the message corresponding to a given NMSG status code.
|
|
Display an error message. This routine outputs to stderr the message corresponding to a given NMSG status code.
|
|
Establish a message server. This routine establishes a network message server (listener).
|
|
Get the IP address of the remote end. This routine returns the IP address of the remote end of a connection. It can be used on either end of a connection.
|
|
Send a message and return immediately. This routine sends a message on a network connection and returns without waiting for a reply.
|
|
Send a message and receive reply. This routine sends a message on a network connection and waits for a reply.
|
|
Get connection statistics. This routine returns a block of connection statistics containing the number of connects, disconnects, messages sent/received, bytes sent and bytes received.
|
|
Wait for a reply to a sent message. This routine waits for a reply to a previously sent message.
|