GNU
|
Liberty Eiffel
|
Automated Tests
|
Wiki
|
Savannah project
|
Debian packages
|
Documentation
>
libraries
>
SOCKET_SERVER
+
Point of view
SOCKET
ANY
INTERNALS_HANDLER
TYPED_INTERNALS
EVENTS_SET
SOCKET
SOCKET_INPUT_OUTPUT_STREAM
All features
deferred class SOCKET_SERVER
Summary
top
A socket server waits for connections to happen on some given access point. It then defers treatment to handlers (see the
when_connect
feature).
Please use
ACCESS
.server to create a
SOCKET_SERVER
.
Direct parents
Insert list:
SOCKET_HANDLER
,
SOCKET_PLUG_IN
Known children
Inherit list:
IPV4_SOCKET_SERVER
,
LOCAL_SOCKET_SERVER
Overview
top
Exported features
can_connect
:
BOOLEAN
True if some client can connect to the server.
error
:
STRING
shutdown
Wait for the connections to finish, then stop the server.
halt
Force all the connected sockets to disconnect, then shutdown
new_stream
(read_sync:
BOOLEAN
):
SOCKET_INPUT_OUTPUT_STREAM
fd
:
INTEGER_32
The file descriptor of the socket; it is used to wait for some connection.
event_connection
:
EVENT_DESCRIPTOR
can_connect
:
BOOLEAN
writable attribute
top
True if some client can connect to the server.
error
:
STRING
writable attribute
top
shutdown
effective procedure
top
Wait for the connections to finish, then stop the server.
No more connections will be accepted.
require
can_connect
ensure
not
can_connect
halt
effective procedure
top
Force all the connected sockets to disconnect, then shutdown
require
can_connect
ensure
not
can_connect
new_stream
(read_sync:
BOOLEAN
):
SOCKET_INPUT_OUTPUT_STREAM
effective function
top
fd
:
INTEGER_32
writable attribute
top
The file descriptor of the socket; it is used to wait for some connection.
event_connection
:
EVENT_DESCRIPTOR
effective function
top