indexing
description: "A medium poller for asynchronous IO on IO_MEDIUMs"
legal: "See notice at end of class."
status: "See notice at end of class."
date: "$Date: 2006-01-22 18:25:44 -0800 (Sun, 22 Jan 2006) $"
revision: "$Revision: 56675 $"
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
generating_type: STRING_8
ANY
generator: STRING_8
ANY
feature
frozen deep_equal (some: ANY; other: like arg #1): BOOLEAN
`some'`other'
ANY
ensure ANY
shallow_implies_deep: standard_equal (some, other) implies Result
both_or_none_void: (some = Void) implies (Result = (other = Void))
same_type: (Result and (some /= Void)) implies some.same_type (other)
symmetric: Result implies deep_equal (other, some)
frozen equal (some: ANY; other: like arg #1): BOOLEAN
`some'`other'
ANY
ensure ANY
definition: Result = (some = Void and other = Void) or else ((some /= Void and other /= Void) and then some.is_equal (other))
is_equal (other: like Current): BOOLEAN
`other'
ANY
require ANY
other_not_void: other /= Void
ensure ANY
symmetric: Result implies other.is_equal (Current)
consistent: standard_is_equal (other) implies Result
frozen standard_equal (some: ANY; other: like arg #1): BOOLEAN
`some'`other'
ANY
ensure ANY
definition: Result = (some = Void and other = Void) or else ((some /= Void and other /= Void) and then some.standard_is_equal (other))
frozen standard_is_equal (other: like Current): BOOLEAN
`other'
ANY
require ANY
other_not_void: other /= Void
ensure ANY
same_type: Result implies same_type (other)
symmetric: Result implies other.standard_is_equal (Current)
feature
address_in_use: BOOLEAN
SOCKET_RESOURCES
address_not_readable: BOOLEAN
SOCKET_RESOURCES
already_bound: BOOLEAN
SOCKET_RESOURCES
bad_socket_handle: BOOLEAN
SOCKET_RESOURCES
conforms_to (other: ANY): BOOLEAN
`other'
ANY
require ANY
other_not_void: other /= Void
connect_in_progress: BOOLEAN
SOCKET_RESOURCES
connection_refused: BOOLEAN
SOCKET_RESOURCES
dtable_full: BOOLEAN
SOCKET_RESOURCES
error: STRING_8
SOCKET_RESOURCES
error_number: INTEGER_32
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
same_type (other: ANY): BOOLEAN
`other'
ANY
require ANY
other_not_void: other /= Void
ensure ANY
definition: Result = (conforms_to (other) and other.conforms_to (Current))
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
copy (other: like Current)
`other'
ANY
require ANY
other_not_void: other /= Void
type_identity: same_type (other)
ensure ANY
is_equal: is_equal (other)
frozen deep_copy (other: like Current)
copy`other'deep_twin
ANY
require ANY
other_not_void: other /= Void
ensure ANY
deep_equal: deep_equal (Current, other)
frozen deep_twin: like Current
ANY
ensure ANY
deep_equal: deep_equal (Current, Result)
frozen standard_copy (other: like Current)
`other'
ANY
require ANY
other_not_void: other /= Void
type_identity: same_type (other)
ensure ANY
is_standard_equal: standard_is_equal (other)
frozen standard_twin: like Current
`other'
ANY
ensure ANY
standard_twin_not_void: Result /= Void
equal: standard_equal (Result, Current)
frozen twin: like Current
`Current'
twincopycopy
ANY
ensure ANY
twin_not_void: Result /= Void
is_equal: Result.is_equal (Current)
feature
frozen default: like Current
ANY
frozen default_pointer: POINTER
`POINTER'
`p'default
`p'`POINTER'
ANY
default_rescue
ANY
frozen do_nothing
ANY
feature
execute (max_des, time_out_msec: INTEGER_32)
`max_des'
require
valid_number: max_des > 0
medium_select (number_to_check, time_out_msec: INTEGER_32): INTEGER_32
feature
set_wait
ensure
wait_set: wait
unset_wait
ensure
wait_not_set: not wait
wait: BOOLEAN
feature
c_msgdontroute: INTEGER_32
SOCKET_RESOURCES
c_oobmsg: INTEGER_32
SOCKET_RESOURCES
c_peekmsg: INTEGER_32
SOCKET_RESOURCES
feature
io: STD_FILES
ANY
out: STRING_8
ANYtagged_out
ANY
print (some: ANY)
`some'
ANY
frozen tagged_out: STRING_8
ANYout
ANY
feature
operating_environment: OPERATING_ENVIRONMENT
ANY
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_32)
require
valid_number: number_of_selected > 0
invariant
ANY
reflexive_equality: standard_is_equal (Current)
reflexive_conformance: conforms_to (Current)
indexing
copyright: "Copyright (c) 1984-2006, Eiffel Software and others"
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
source: "[
Eiffel Software
356 Storke Road, Goleta, CA 93117 USA
Telephone 805-685-1006, Fax 805-685-6869
Website http://www.eiffel.com
Customer support http://support.eiffel.com
]"
end MEDIUM_POLLER