Include the main header for the library.
Add to the manifest the dependency.
This two steps should be enough to compile and link with the library.
First create the object and initialize it.
The class constructor will setup the socket but will NOT open it. The first argument of the constructor is the IP of the server and the second the port number to use.
The class can also be used in asynchronous communications by using the following constructor:
The user is responsible for the interception of communication signals (SIGIO
) and its handling.
Class usage is very simple, the user must only class the desired function to Send()
or Receive()
data.