class MULTIPLEX_SERVER
Summary
If you try to make a real server using our technology, this class may prove useful. Be sure to have seen the class SOCKETS first.
Direct parents
Insert list: SERVER
Overview
Creation features
{ANY}
Features
{}
{MULTIPLEX_CONNECTION}
{ANY}
{}
{}
{}
make
effective procedure
{}
new_connection: MULTIPLEX_CONNECTION
effective function
{}
Create a new connection
handle_error (error_message: STRING)
effective procedure
{}
What to do when there was an error
shutdown
effective procedure
A connection asked the server to shut down
halt
effective procedure
A connection asked the server to halt
connection_done (a_connection: MULTIPLEX_CONNECTION)
effective procedure
A connection is just finished.
start (access: ACCESS)
effective procedure
{ANY}
Start a server at the given access point.
start_in_stack (access: ACCESS, a_stack: LOOP_STACK, a_shutdown_handler: PROCEDURE[TUPLE[TUPLE 1[MULTIPLEX_SERVER]]]): BOOLEAN
effective function
{ANY}
Start the server in the given stack.
set_logger (a_logger: PROCEDURE[TUPLE 1[ABSTRACT_STRING]])
effective procedure
{ANY}
log (a_message: ABSTRACT_STRING)
effective procedure
{ANY}
writable attribute
{}
standalone_handler_agent: PROCEDURE[TUPLE[TUPLE 1[MULTIPLEX_SERVER]]]
effective function
{}
common_start (access: ACCESS): BOOLEAN
effective function
{}
stack: LOOP_STACK
writable attribute
{}
writable attribute
{}
connections: INTEGER_32
writable attribute
{}
shutdown_handler: PROCEDURE[TUPLE[TUPLE 1[MULTIPLEX_SERVER]]]
writable attribute
{}
handle_connect (a_io: SOCKET_INPUT_OUTPUT_STREAM)
effective procedure
{}
Handle a connection to the server.
handle_shutdown (a_server: SOCKET_SERVER_JOB)
effective procedure
{}
Shutdown gracefully when all connections are closed.
standalone_shutdown (a_server: MULTIPLEX_SERVER)
effective procedure
{}