Home | Trees | Index | Help |
|
---|
Package twisted :: Package internet :: Module udp :: Class Port |
|
Ephemeral
--+ |Logger
--+ |FileDescriptor
--+ |BasePort
--+ | Port
ConnectedPort
,
DatagramPort
,
MulticastPort
Method Summary | |
---|---|
Initialize with a numeric port to listen on. | |
__repr__(self)
| |
_bindSocket(self)
| |
_connectToProtocol(self)
| |
'Connect' to remote server. | |
Cleans up my socket. | |
Called when my socket is ready for reading. | |
Return a socket object. | |
Returns an IPv4Address. | |
Returns the name of my class, to prefix log entries with. | |
Stop accepting connections on this port. | |
setLogStr(self)
| |
Create and bind my socket, and begin listening on it. | |
stopListening(self)
| |
Write a datagram. | |
writeSequence(self,
seq,
addr)
| |
Inherited from BasePort | |
| |
Raises a RuntimeError | |
Inherited from FileDescriptor | |
Called after a loseConnection(), when all data has been written. | |
File Descriptor number for select(). | |
| |
Register to receive data from a producer. | |
| |
Start waiting for read availability. | |
Start waiting for write availability. | |
Stop consuming data. | |
| |
Stop waiting for read availability. | |
Stop waiting for write availability. | |
Stop consuming data from a producer, without disconnecting. | |
Write as much as possible of the given data, immediately. | |
Inherited from Ephemeral | |
| |
|
Class Variable Summary | |
---|---|
tuple |
__implements__ = ((<class twisted.internet.interfaces.IP...
|
int |
addressFamily = 2 |
int |
maxThroughput = 262144 |
int |
socketType = 2 |
Inherited from FileDescriptor | |
int |
bufferSize = 65536 |
int |
connected = 0 |
str |
dataBuffer = ''
|
int |
disconnected = 0 |
int |
disconnecting = 0 |
int |
offset = 0 |
NoneType |
producer = None |
int |
producerPaused = 0 |
int |
streamingProducer = 0 |
Method Details |
---|
__init__(self,
port,
proto,
interface='',
maxPacketSize=8192,
reactor=None)
Initialize with a numeric port to listen on.
|
connect(self, host, port)'Connect' to remote server. |
connectionLost(self, reason=None)Cleans up my socket. |
doRead(self)Called when my socket is ready for reading. |
getHandle(self)Return a socket object. |
getHost(self)Returns an IPv4Address. This indicates the address from which I am connecting. |
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. |
write(self, datagram, addr=None)Write a datagram.
|
Class Variable Details |
---|
addressFamily
|
maxThroughput
|
socketType
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Sat May 15 20:07:41 2004 | http://epydoc.sf.net |