GNU
|
Liberty Eiffel
|
Automated Tests
|
Wiki
|
Savannah project
|
Debian packages
|
Documentation
>
libraries
>
LOCAL_SOCKET
+
Point of view
SOCKET_HANDLER
ANY
INTERNALS_HANDLER
TYPED_INTERNALS
RECYCLING_POOL
SOCKET_HANDLER
SOCKET_SERVER
All features
class LOCAL_SOCKET
Summary
top
A local
SOCKET
.
Direct parents
Inherit list:
SOCKET_IMPL
Overview
top
Creation features
make
(a_port:
INTEGER_32
, a_sync:
BOOLEAN
)
bind
(server:
SOCKET_SERVER
, a_sync:
BOOLEAN
)
Binds the socket to the server.
Exported features
port
:
INTEGER_32
bind
(server:
SOCKET_SERVER
, a_sync:
BOOLEAN
)
Binds the socket to the server.
is_connected
:
BOOLEAN
is_remote_connected
:
BOOLEAN
error
:
STRING
read
last_read
:
STRING
write
(data:
STRING
)
disconnect
clear
fd
:
INTEGER_32
set_sync
(a_sync:
BOOLEAN
)
set blocking mode for reading, True is blocking, False nonblocking
sync
:
BOOLEAN
the blocking mode for reading from the socket, True is blocking, False nonblocking
default_buffer_size
:
INTEGER_32
when_disconnected
(a_listener:
PROCEDURE
[
TUPLE 1
[
SOCKET
]])
port
:
INTEGER_32
writable attribute
top
bind
(server:
SOCKET_SERVER
, a_sync:
BOOLEAN
)
effective procedure
top
Binds the socket to the server.
is_connected
:
BOOLEAN
writable attribute
top
ensure
Result implies is_remote_connected
is_remote_connected
:
BOOLEAN
writable attribute
top
error
:
STRING
writable attribute
top
read
effective procedure
top
require
is_connected
last_read
:
STRING
effective function
top
require
is_connected
write
(data:
STRING
)
effective procedure
top
require
is_connected
data /= Void
disconnect
effective procedure
top
require
is_connected
ensure
not is_connected
not is_remote_connected
clear
effective procedure
top
require
not is_connected
fd
:
INTEGER_32
writable attribute
top
set_sync
(a_sync:
BOOLEAN
)
effective procedure
top
set blocking mode for reading, True is blocking, False nonblocking
ensure
sync = a_sync
sync
:
BOOLEAN
writable attribute
top
the blocking mode for reading from the socket, True is blocking, False nonblocking
default_buffer_size
:
INTEGER_32
is 8192
constant attribute
top
when_disconnected
(a_listener:
PROCEDURE
[
TUPLE 1
[
SOCKET
]])
effective procedure
top
require
a_listener /= Void