home
wiki
classes/clusters list
class information
+
Point of view
All features
ANY
URL
RECYCLING_POOL
INTERNALS_HANDLER
All features
deferred class TCP_PROTOCOL
Summary
top
A protocol that handles a TCP stream.
Direct parents
inherit list:
PROTOCOL
Known children
inherit list:
HTTP_PROTOCOL
Class invariant
top
error /= Void implies not is_connected
Overview
top
features
error
:
STRING
connect_to
(url:
URL
)
standard_port
:
INTEGER_32
tcp_connect_to
(ios:
SOCKET_INPUT_OUTPUT_STREAM
, url:
URL
)
agent_unregister
:
PROCEDURE
[
TUPLE
]
unregister
(p:
PROTOCOL
)
name
:
STRING
is_connected
:
BOOLEAN
disconnect
input
:
INPUT_STREAM
output
:
OUTPUT_STREAM
recycle
Do whatever needs to be done to free resources or recycle other objects when recycling this one
error
:
STRING
writable attribute
top
connect_to
(url:
URL
)
effective procedure
top
require
url /= Void
not is_connected
standard_port
:
INTEGER_32
deferred function
top
tcp_connect_to
(ios:
SOCKET_INPUT_OUTPUT_STREAM
, url:
URL
)
deferred procedure
top
require
ios.is_connected
url /= Void
not
is_connected
agent_unregister
:
PROCEDURE
[
TUPLE
]
writable attribute
top
unregister
(p:
PROTOCOL
)
effective procedure
top
require
not p.is_connected
name
:
STRING
deferred function
top
is_connected
:
BOOLEAN
deferred function
top
disconnect
deferred procedure
top
require
is_connected
ensure
not
is_connected
input
:
INPUT_STREAM
deferred function
top
require
is_connected
output
:
OUTPUT_STREAM
deferred function
top
require
is_connected
recycle
effective procedure
top
Do whatever needs to be done to free resources or recycle other objects when recycling this one