indexing
description: "A medium poller for asynchronous IO on IO_MEDIUMs"
status: "See notice at end of class"
date: "$Date$"
revision: "$Revision$"
class interface
MEDIUM_POLLER
create
make
make_read_only
make_write_only
make_exception_only
feature
make
make_exception_only
make_read_only
make_write_only
feature
address_in_use: BOOLEAN
SOCKET_RESOURCES
address_not_readable: BOOLEAN
SOCKET_RESOURCES
already_bound: BOOLEAN
SOCKET_RESOURCES
bad_socket_handle: BOOLEAN
SOCKET_RESOURCES
connect_in_progress: BOOLEAN
SOCKET_RESOURCES
connection_refused: BOOLEAN
SOCKET_RESOURCES
dtable_full: BOOLEAN
SOCKET_RESOURCES
error: STRING
SOCKET_RESOURCES
error_number: INTEGER
SOCKET_RESOURCES
expired_socket: BOOLEAN
SOCKET_RESOURCES
invalid_address: BOOLEAN
SOCKET_RESOURCES
invalid_socket_handle: BOOLEAN
SOCKET_RESOURCES
network: BOOLEAN
SOCKET_RESOURCES
no_buffers: BOOLEAN
SOCKET_RESOURCES
no_permission: BOOLEAN
SOCKET_RESOURCES
not_connected: BOOLEAN
SOCKET_RESOURCES
protected_address: BOOLEAN
SOCKET_RESOURCES
protocol_not_supported: BOOLEAN
SOCKET_RESOURCES
socket_family_not_supported: BOOLEAN
SOCKET_RESOURCES
socket_in_use: BOOLEAN
SOCKET_RESOURCES
socket_ok: BOOLEAN
SOCKET_RESOURCES
socket_would_block: BOOLEAN
SOCKET_RESOURCES
zero_option: BOOLEAN
SOCKET_RESOURCES
feature
execute (max_des, time_out_msec: INTEGER)
max_des
require
valid_number: max_des > 0
medium_select (number_to_check, time_out_msec: INTEGER): INTEGER
feature
set_wait
ensure
wait_set: wait
unset_wait
ensure
wait_not_set: not wait
wait: BOOLEAN
feature
c_msgdontroute: INTEGER
SOCKET_RESOURCES
c_oobmsg: INTEGER
SOCKET_RESOURCES
c_peekmsg: INTEGER
SOCKET_RESOURCES
feature
ignore_exception: BOOLEAN
ignore_read: BOOLEAN
ignore_write: BOOLEAN
set_exception
ensure
exception_used: not ignore_exception
set_ignore_exception
ensure
exception_not_used: ignore_exception
set_ignore_read
ensure
read_not_used: ignore_read
set_ignore_write
ensure
write_not_used: ignore_write
set_read
ensure
read_used: not ignore_read
set_write
ensure
write_used: not ignore_write
feature
exception_command_list: ARRAY [POLL_COMMAND]
put_exception_command (a_command: POLL_COMMAND)
a_command
require
valid_command: a_command /= void
not_empty_medium: a_command.active_medium /= void
ensure
command_added: exception_command_list.has (a_command)
put_read_command (a_command: POLL_COMMAND)
a_command
require
valid_command: a_command /= void
not_empty_medium: a_command.active_medium /= void
ensure
command_added: read_command_list.has (a_command)
put_write_command (a_command: POLL_COMMAND)
a_command
require
valid_command: a_command /= void
not_empty_medium: a_command.active_medium /= void
ensure
command_added: write_command_list.has (a_command)
read_command_list: ARRAY [POLL_COMMAND]
remove_associated_exception_command (s: IO_MEDIUM)
s
require
has_command: exception_command_list.upper >= s.handle
ensure
command_removed: exception_command_list.item (s.handle) = void
remove_associated_read_command (s: IO_MEDIUM)
s
require
has_command: read_command_list.upper >= s.handle
ensure
command_removed: read_command_list.item (s.handle) = void
remove_associated_write_command (s: IO_MEDIUM)
s
require
has_command: write_command_list.upper >= s.handle
ensure
command_removed: write_command_list.item (s.handle) = void
remove_exception_command (a_command: POLL_COMMAND)
a_command
require
has_command: exception_command_list.has (a_command)
ensure
command_removed: not exception_command_list.has (a_command)
remove_read_command (a_command: POLL_COMMAND)
a_command
require
valid_command: a_command /= void
has_command: read_command_list.has (a_command)
not_empty_medium: a_command.active_medium /= void
ensure
command_removed: not read_command_list.has (a_command)
remove_write_command (a_command: POLL_COMMAND)
a_command
require
has_command: write_command_list.has (a_command)
ensure
command_removed: not write_command_list.has (a_command)
write_command_list: ARRAY [POLL_COMMAND]
feature
except_mask: POLL_MASK
last_except_mask: POLL_MASK
last_read_mask: POLL_MASK
last_write_mask: POLL_MASK
read_mask: POLL_MASK
write_mask: POLL_MASK
feature
process_selected (number_of_selected: INTEGER)
require
valid_number: number_of_selected > 0
invariant
ANY
reflexive_equality: standard_is_equal (Current)
reflexive_conformance: conforms_to (Current)
end -- MEDIUM_POLLER