#include <Socket.h>
Public Member Functions | |
| Socket () | |
| Constructor for a Socket. | |
| Socket (Socket *) | |
| ~Socket () | |
| Destructor for Socket. | |
| Message * | Recv () |
| get a Message through the socket | |
| int | Send (Message *) |
| int | Connect (string addr, int port) |
| int | Bind (string, int) |
| int | Listen () |
| Listen to the socket. | |
| Socket * | Accept () |
| Blocks the current process until a TCP connection request is received on the bound port. | |
| void | setLocalAddr (string) |
| void | setRemoteAddr (string) |
| string | getLocalAddr () |
| Get the local address in dotted notation. | |
| string | getRemoteAddr () |
| Get the remote address in dotted notation. | |
|
|
Blocks the current process until a TCP connection request is received on the bound port.
|
|
|
Get the local address in dotted notation.
|
|
|
Get the remote address in dotted notation.
|
|
|
Listen to the socket.
|
|
|
get a Message through the socket
|
1.4.4