#include <ServerSocket.h>
Inheritance diagram for ServerSocket:


Public Member Functions | |
| ServerSocket () | |
| Creates an unconnected server socket. | |
| ServerSocket (int port) | |
| Creates a server socket that listens on a specified port. | |
| int | listen (int port) |
| Make this socket listen on a port. | |
| Socket | accept () |
| Accept connection on the port this server is listening to. | |
Protected Attributes | |
| int | port |
| The port this server is listening on. | |
| int | maxConnectQ |
| Maximum numer of connection allowed in the connection queue. | |
A server socket waits for requests to come in over the network. When a request (connection) is received it establishes a connection on a Socket objekt that can be used for further communication.
| ServerSocket::ServerSocket | ( | ) | [inline] |
Creates an unconnected server socket.
| ServerSocket::ServerSocket | ( | int | port | ) | [inline] |
Creates a server socket that listens on a specified port.
| port | The port the server should listen on. |
| Check | Error() after using this contructor |
| Socket ServerSocket::accept | ( | ) |
Accept connection on the port this server is listening to.
| If | this method returns NULL you should check the Error() function. |
| int ServerSocket::listen | ( | int | port | ) |
Make this socket listen on a port.
| port | The port the server should listen on. |
int ServerSocket::maxConnectQ [protected] |
Maximum numer of connection allowed in the connection queue.
int ServerSocket::port [protected] |
The port this server is listening on.
1.4.7