#include <scim_socket.h>
Inheritance diagram for scim::SocketServer:


Public Member Functions | |
| SocketServer (int max_clients=-1) | |
| SocketServer (const SocketAddress &address, int max_clients=-1) | |
| ~SocketServer () | |
| bool | valid () |
| bool | create (const SocketAddress &address) |
| bool | run () |
| bool | is_running () const |
| void | shutdown () |
| void | close_connection (const Socket &socket) |
| int | get_error_number () const |
| String | get_error_message () const |
| int | get_max_clients () const |
| void | set_max_clients (int max_clients) |
| Connection | signal_connect_accept (SocketServerSlotSocket *slot) |
| Connection | signal_connect_receive (SocketServerSlotSocket *slot) |
| Connection | signal_connect_exception (SocketServerSlotSocket *slot) |
Definition at line 275 of file scim_socket.h.
|
|
default constructor, do nothing. |
|
||||||||||||
|
constructor.
|
|
|
destructor. |
|
|
test if the server is valid. |
|
|
create a socket on the address.
|
|
|
run the server. |
|
|
check if the server is running. |
|
|
shutdown the server. |
|
|
close a connection. |
|
|
get the number of the last occurred error. Reimplemented from scim::Socket. |
|
|
get the message of the last occurred error. Reimplemented from scim::Socket. |
|
|
get the max number of clients. |
|
|
set the max number of clients. |
|
|
connect a slot to accept signal, if a client connection is accepted, this signal will be emitted. |
|
|
connect a slot to receive signal, if a client send data to server, this signal will be emitted. |
|
|
connect a slot to exception signal, if a exception was occurred to a connection, this signal will be emitted. |
1.3.6