recho2
Send messages to lam echo server.
Usage
int recho (int node, char *src_msg, char *dest_msg, int length);
Arguments
node
|
location of echo service |
|---|---|
src_msg
|
outgoing message |
dest_msg
|
incoming echo message |
length
|
of both message buffers |
Overview
The echo server returns any message that it receives to the sender. It is a confidence testing service for the LAM network.
The message length must not exceed the maximum network message length MAXNMSGLEN, defined in <net.h> and factory set to 8192 bytes.
Return value
Upon successful completion, the number of bytes echoed is returned. If an error occurred, -1 is returned and the global variable errno is set to indicate the error.
Errors
- EMSGLEN
-
The message length exceeds the maximum message length.
Releases
2 releases since Debian 2.1 (Slink); the text changed 1 time.