Home | Trees | Index | Help |
---|
Package twisted :: Package internet :: Module udp :: Class Port |
|
Logger
--+ |Ephemeral
--+ |FileDescriptor
--+ |BasePort
--+ | Port
ConnectedPort
,
MulticastPort
Method Summary | |
---|---|
Initialize with a numeric port to listen on. | |
__getstate__(self)
(inherited from Ephemeral )
| |
__repr__(self)
| |
__setstate__(self,
state)
(inherited from Ephemeral )
| |
Cleans up my socket. | |
Called when my socket is ready for reading. | |
File Descriptor number for select(). (inherited from FileDescriptor )
| |
Returns a tuple of ('INET_UDP', hostname, port), indicating the servers address | |
Returns the name of my class, to prefix log entries with. | |
Stop accepting connections on this port. | |
pauseProducing(self)
(inherited from FileDescriptor )
| |
Register to receive data from a producer. (inherited from FileDescriptor )
| |
resumeProducing(self)
(inherited from FileDescriptor )
| |
setLogStr(self)
| |
Create and bind my socket, and begin listening on it. | |
Start waiting for read availability. (inherited from FileDescriptor )
| |
Start waiting for write availability. (inherited from FileDescriptor )
| |
Stop consuming data. (inherited from FileDescriptor )
| |
Stop accepting connections on this port. | |
stopProducing(self)
(inherited from FileDescriptor )
| |
Stop waiting for read availability. (inherited from FileDescriptor )
| |
Stop waiting for write availability. (inherited from FileDescriptor )
| |
Stop consuming data from a producer, without disconnecting. (inherited from FileDescriptor )
| |
Write a datagram. | |
writeSequence(self,
seq,
addr)
| |
Write as much as possible of the given data, immediately. (inherited from FileDescriptor )
|
Class Variable Summary | |
---|---|
tuple |
__implements__
|
int |
addressFamily
|
int |
maxThroughput
|
int |
socketType
|
Method Details |
---|
__init__(self,
port,
proto,
interface='',
maxPacketSize=8192,
reactor=None)
Initialize with a numeric port to listen on.
|
connectionLost(self, reason=None)Cleans up my socket. |
doRead(self)Called when my socket is ready for reading. |
getHost(self)Returns a tuple of ('INET_UDP', hostname, port), indicating the servers address |
logPrefix(self)Returns the name of my class, to prefix log entries with. |
loseConnection(self)Stop accepting connections on this port. This will shut down my socket and call self.connectionLost(). |
startListening(self)Create and bind my socket, and begin listening on it. This is called on unserialization, and must be called after creating a server to begin listening on the specified port. |
stopListening(self)Stop accepting connections on this port. This will shut down my socket and call self.connectionLost(). |
write(self, datagram, (host,Write a datagram. |
Class Variable Details |
---|
addressFamily
|
maxThroughput
|
socketType
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 1.1 on Thu May 8 13:16:30 2003 | http://epydoc.sf.net |