#include "isisserver.h"
Functions | |
void | initHostTable () |
Initialize the server client host table. | |
int | updateHosts (char *hostID, int method, int fd, long addr, int port) |
Update the client host table with client info. | |
int | removeHost (char *hostID) |
Remove an entry from the client host table. | |
int | isKnownHost (char *hostID) |
Verify that client is a known host (i.e., in the client table). | |
void | printHosts (char *hostID) |
Prints the server's client host table on stdout. | |
void | hostInfo (char *hostID, char *reply) |
Report host information to a remote client. |
These routines are used by the server to create and manipulate the contents of its dynamic client host table.
Functions:
|
Initialize the server client host table. Initializes the contents of the ISIS client table, clearing all host entries. Must be called before filling the client table either at server startup or restart. |
|
Update the client host table with client info.
See isKnownHost() for how to test to see if a recipient is known to the system. |
|
Remove an entry from the client host table.
Since the number of allowed clients is expected to remain a small number, repacking the table to remove gaps does not offer any economies at present, but someday if it is decided it is necessary, the repacking should go in this routine. |
|
Verify that client is a known host (i.e., in the client table).
|
|
Prints the server's client host table on stdout.
For output tailored for sending back to remote clients (i.e., output as an IMPv2-conformal message string), see hostInfo(). |
|
Report host information to a remote client.
For detailed output tailored for the server's command console window (i.e., printing on stdout), see printHosts(). |