EasySocket is a simple library to deal with sockets, simplifying the process of building a functional socket application in C.
ws2_32Library is needed to be compiled in windows.
Attempts to close the descriptor of a EasySocket
Attempts to initialize a descriptor of a EasySocket
| Value | Family | True Family |
|---|---|---|
| 0 | IPV4 | AF_INET |
| 1 | IPV6 | AF_INET6 |
| Value | Type | True Type |
|---|---|---|
| 0 | UDP | SOCK_DGRAM |
| 1 | TCP | SOCK_STREAM |
Attempts to initialize the "addr" Structure inside of a EasySocket
| Value | Family | True Family |
|---|---|---|
| 0 | IPV4 | AF_INET |
| 1 | IPV6 | AF_INET6 |
Attempts to allocate a char buffer inside a EasySocket
Attempts to deallocate a char buffer inside a EasySocket
Attempts to initialize all the bytes of a buffer, inside a EasySocket, with '\0'
Attempts to bind a EasySocketServer to a previously defined port
Attemps to make a EasySocketServer Listen to a previously bound port
Attempts to make a EasySocketServer accept to a connection, and transfer control to a EasySocketClient
Attempts to connect a EasySocketClient to a previously listening EasySocketServer
Attempts to send the current buffer as a message from a EasySocket, to another previously connected EasySocket
If the message parameter is not NULL,the buffer will be overwritten.
Attempts to send a message from a EasySocket to another unconnected EasySocket (UDP)
Attempts to make a EasySocket recive a message from another previously connected EasySocket
The message will be stored inside the reciver's buffer