GNU
|
Liberty Eiffel
|
Automated Tests
|
Wiki
|
Savannah project
|
Debian packages
|
Documentation
>
libraries
>
IPV4_SOCKET_SERVER
+
Point of view
SOCKET_INPUT_OUTPUT_STREAM
ANY
INTERNALS_HANDLER
TYPED_INTERNALS
EVENTS_SET
SOCKET
SOCKET_INPUT_OUTPUT_STREAM
All features
class IPV4_SOCKET_SERVER
Summary
top
Direct parents
Inherit list:
SOCKET_SERVER
Overview
top
Creation features
Exported features
bind
(a_sync:
BOOLEAN
):
SOCKET
Create a socket for the stream to connect upon (used by the stream at creation)
has_socket
(socket:
SOCKET
):
BOOLEAN
socket_disconnected
(socket:
SOCKET
)
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
unbind
(socket:
SOCKET
)
Close the socket and unbind it
event_connection
:
EVENT_DESCRIPTOR
bind
(a_sync:
BOOLEAN
):
SOCKET
effective function
top
Create a socket for the stream to connect upon (used by the stream at creation)
ensure
has_socket(Result)
has_socket
(socket:
SOCKET
):
BOOLEAN
effective function
top
socket_disconnected
(socket:
SOCKET
)
effective procedure
top
require
not socket.is_connected
has_socket(socket)
ensure
not has_socket(socket)
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
unbind
(socket:
SOCKET
)
effective procedure
top
Close the socket and unbind it
require
socket.is_connected
has_socket
(socket)
ensure
not
has_socket
(socket)
not socket.is_connected
event_connection
:
EVENT_DESCRIPTOR
effective function
top