|
|
|
|
|
scan_for_timeouts(self)
Check the sockets for timeouts. |
source code
|
|
|
|
bind(self,
port,
bind='',
reuse=True,
ipv6_socket_style=1)
Bind to listen on a single port. |
source code
|
|
int
|
find_and_bind(self,
minport,
maxport,
bind='',
reuse=True,
ipv6_socket_style=1,
randomizer=True)
Bind to listen on a single port within a range. |
source code
|
|
|
|
|
|
SocketHandler.SingleSocket
|
|
|
SocketHandler.SingleSocket
|
|
|
|
|
|
|
|
|
|
close_dead(self)
Close sockets that have failed to be written. |
source code
|
|
|
|
|
|
|
|
dictionary
|
|
|
|
shutdown(self)
Close all open sockets and servers. |
source code
|
|
list of SingleSocket
|
dead_from_write
the sockets that have failed due to writing
|
dictionary of {int: unknown}
|
handlers
the handlers that are used for the listened ports, keys are the
ports
|
list of string
|
interfaces
the interfaces that have been bound to
|
boolean
|
ipv6_enable
allow the client to connect to peers via IPv6
|
int
|
max_connects
the maximum number of sockets to have open at atime
|
select.poll
|
poll
the poll object to use to poll the sockets
|
list of int
|
ports
the ports that are being listened on
|
int
|
readsize
the maximum amount of data to read from a socket
|
dictionary of {int:
socket.socket}
|
servers
the socket listeners, keys are the file numbers
|
dictionary of {int: SingleSocket}
|
single_sockets
the collection of all open sockets, keys are the socket's file
number
|
float
|
timeout
seconds to wait between closing sockets on which nothing has been
received on
|