Go to the first, previous, next, last section, table of contents.


isdRecv

char *isdRecv(SOCKET socket, isdHeader *header)

Both clients and workers use isdRecv() to receive messages from isectd. Clients receive messages as responses to requests. Workers get requests from clients (via isectd) using isdRecv().

socket is the file handle returned from either isdLogin() (clients) or isdConnect() (workers). After a successful read, isdRecv() returns as its value a pointer to a buffer which is the body of the message, less the isdHeader, which is returned separately. The length of the buffer is stored in header->len.

header is a pointer to an isdHeader.

If an error occurs reading the message isdRecv() returns NULL.


Go to the first, previous, next, last section, table of contents.