GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > NMSG / V4-0-0
Constituent: nmsg     Tag: sun-gcc
#include "NMSG/nmsgLib.h"
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include <netinet/in.h>
#include <pthread.h>
#include <errno.h>
#include <string.h>
#include <stdio.h>
Include dependency graph for nmsgLib.c:
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. |
|
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.
|