Computer Science & Software Engineering |
CSCI 466 |
TestSocket runs as a server unless the -host option is specified. The message size and maximum bytes per send() are determined by the client's options. The client communicates these settings to the server during an initial setup communication. After setup is complete, the client and server take turns sending messages back and forth to each other. After all cycles are completed, the client program terminates while the server program waits for a new client.TestSocket -backlog <server: maximum backlog> -port <client/server: port number> -host <client: hostname> -msgsize <client: message size in bytes> -maxsend <client: max bytes to send at one time> -cycles <client: send/recv cycles> -printmsg [dump the buffer for debugging]
Page last updated: August 16, 2012. Copyright © 2011 by Keith Vertanen.