Introduction
Setup and Initialization
Connecting
Sending/Receiving Data
Closing and Cleanup
Definitions
Sending and Receiving Data
Sending data to a remote host is a very simple matter. If you are sending plain text then simply storing your string to buffer and calling the send function is all that is required. The code below just sends simple text to a remote host.



Receiving data is also fairly simple. It works in the same way that the send function works only it puts data into the buffer and returns the number of bytes received. The below example shows how to receive incoming data from a remote host without processing the return value from the function.



Previous Page          Next Page