class SOCKET_SERVER

Features exported to ANY

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

non-conformant parents

SOCKET_HANDLER, SOCKET_PLUG_IN

Summary

creation features

exported features

Details

can_connect: BOOLEAN

True if some client can connect to the server.

shutdown

Wait for the connections to finish, then stop the server. No more connections will be accepted.

require

  • can_connect

ensure

  • not can_connect

halt

Force all the connected sockets to disconnect, then shutdown

require

  • can_connect

ensure

  • not can_connect

new_stream: SOCKET_INPUT_OUTPUT_STREAM