|
ContRap-Core
|
Class ServerSocket is a platform independent server socket implementation. More...
#include <socket.h>
Public Member Functions | |
| ServerSocket (int port) | |
| Creates a server socket on the given port. | |
| ~ServerSocket () | |
| Disconnects from the socket and releases the memory. | |
| void | connect () |
| Connects to the socket. | |
| ClientSocket * | receive () |
| Listens a new client connection. | |
Protected Attributes | |
| int | port |
| Port number of the socket. | |
Class ServerSocket is a platform independent server socket implementation.
| crp::ServerSocket::ServerSocket | ( | int | port | ) |
Creates a server socket on the given port.
| crp::ServerSocket::~ServerSocket | ( | ) |
Disconnects from the socket and releases the memory.
| void crp::ServerSocket::connect | ( | ) |
Connects to the socket.
| ClientSocket* crp::ServerSocket::receive | ( | ) |
Listens a new client connection.
This method is blocking.
int crp::ServerSocket::port [protected] |
Port number of the socket.
1.7.3