[top]server
This object represents a server that listens on a port and spawns new
threads to handle each new connection. It also manages the connections
and threads for you.
Specification: dlib/server/server_kernel_abstract.hFile to include: dlib/server.hCode Examples: 1,
2,
3Implementations:
server_kernel_1:
This implementation is done using the objects defined in the
sockets and threads packages.
It also uses a set to keep track of the connections.
kernel_1a |
is a typedef for server_kernel_1 that uses set_kernel_1a |
kernel_1a_c |
is a typedef for kernel_1a that checks its preconditions.
|
Extensions to server
http
This extension turns the server object into a simple HTTP server.
Specification: dlib/server/server_http_abstract.hCode Examples: 1Implementations:
server_http_1:
This is implemented in the obvious way.
http_1a |
is a typedef for server_iostream_1a extended by server_http_1 |
http_1a_c |
is a typedef for http_1a that checks its preconditions.
|
iostream
This extension redefines the on_connect() function so that
instead of giving you a connection object you get an istream
and ostream object.
Specification: dlib/server/server_iostream_abstract.hImplementations:
server_iostream_1:
This is implemented in the obvious way using the sockstreambuf object.
iostream_1a |
is a typedef for server_kernel_1a extended by server_iostream_1 that uses
sockstreambuf_kernel_2a |
iostream_1a_c |
is a typedef for iostream_1a that checks its preconditions.
|