home
wiki
classes/clusters list
class information
+
Point of view
SOCKET
ANY
SOCKET_INPUT_OUTPUT_STREAM
SOCKET
EVENTS_SET
INTERNALS_HANDLER
All features
class SOCKET_SERVER
Summary
top
A socket server waits for connections to happen on some given address/port. 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
Overview
top
creation features
exported features
can_connect
:
BOOLEAN
True if some client can connect to the server.
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.
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