class SOCKET_SERVER
Summary
Overview
creation features
  • make (a_access: ACCESS, a_socket_fd: INTEGER_32)
    Connect to an access, which must also provide the file descriptor
features
  • fd: INTEGER_32
    The file descriptor of the socket; it is used to wait for some connection.
  • make (a_access: ACCESS, a_socket_fd: INTEGER_32)
    Connect to an access, which must also provide the file descriptor
Plugin
can_connect: BOOLEAN
writable attribute
True if some client can connect to the server.
shutdown
effective procedure
Wait for the connections to finish, then stop the server.
halt
effective procedure
Force all the connected sockets to disconnect, then shutdown
new_stream (read_sync: BOOLEAN): SOCKET_INPUT_OUTPUT_STREAM
effective function
writable attribute
The file descriptor of the socket; it is used to wait for some connection.
access: ACCESS
writable attribute
bind: SOCKET
effective function
Create a socket for the stream to connect upon (used by the stream at creation)
unbind (socket: SOCKET)
effective procedure
Close the socket and unbind it
has_socket (socket: SOCKET): BOOLEAN
effective function
socket_disconnected (socket: SOCKET)
effective procedure
connected_sockets: FAST_ARRAY[SOCKET]
writable attribute
The currently connected sockets
sockets_pool: RECYCLING_POOL[SOCKET]
once function
Common array containing all the currently disconnected sockets.
bind_socket: SOCKET
effective function
unbind_socket (socket: SOCKET)
effective procedure
kill_connections
effective procedure
make (a_access: ACCESS, a_socket_fd: INTEGER_32)
effective procedure
Connect to an access, which must also provide the file descriptor
event_connection: EVENT_DESCRIPTOR
effective function
connection_occurred: NETWORK_CONNECTION_OCCURRED
writable attribute
last_error: STRING
effective function
last_error_memory: STRING
constant attribute
net_tcp (ip_a: INTEGER_32, ip_b: INTEGER_32, ip_c: INTEGER_32, ip_d: INTEGER_32, a_port: INTEGER_32): INTEGER_32
net_udp (ip_a: INTEGER_32, ip_b: INTEGER_32, ip_c: INTEGER_32, ip_d: INTEGER_32, a_port: INTEGER_32): INTEGER_32
net_local (a_port: INTEGER_32): INTEGER_32
net_select (a_fd: INTEGER_32, a_timeout: REAL_64): INTEGER_32
net_read (a_fd: INTEGER_32, a_count: INTEGER_32, a_buffer: POINTER, sync: BOOLEAN): INTEGER_32
net_write (a_fd: INTEGER_32, a_count: INTEGER_32, a_buffer: NATIVE_ARRAY[CHARACTER]): INTEGER_32
net_accept (a_fd: INTEGER_32, a_val: NATIVE_ARRAY[INTEGER_32])
net_disconnect (a_fd: INTEGER_32)
net_shutdown (a_fd: INTEGER_32)
net_last_error: POINTER
net_last_error_number: INTEGER_32
net_hostname (a_hostname: POINTER): INTEGER_32
net_tcp_server (port: INTEGER_32): INTEGER_32
net_udp_server (port: INTEGER_32): INTEGER_32
net_local_server (port: INTEGER_32): INTEGER_32