Home | Trees | Index | Help |
|
---|
Package twisted :: Package internet :: Module unix :: Class DatagramPort |
|
Ephemeral
--+ |Logger
--+ |FileDescriptor
--+ |BasePort
--+ |Port
--+ | DatagramPort
ConnectedDatagramPort
Method Summary | |
---|---|
Initialize with address to listen on. | |
_bindSocket(self)
| |
Cleans up my socket. | |
Returns an IPv4Address. | |
setLogStr(self)
| |
Write a datagram. | |
Inherited from Port | |
| |
| |
'Connect' to remote server. | |
Called when my socket is ready for reading. | |
Return a socket object. | |
Returns the name of my class, to prefix log entries with. | |
Stop accepting connections on this port. | |
Create and bind my socket, and begin listening on it. | |
| |
| |
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 = 1 |
Inherited from Port | |
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,
addr,
proto,
maxPacketSize=8192,
mode=438,
reactor=None)
Initialize with address to listen on.
|
connectionLost(self, reason=None)Cleans up my socket.
|
getHost(self)Returns an IPv4Address. This indicates the address from which I am connecting.
|
write(self, datagram, address)Write a datagram.
|
Class Variable Details |
---|
addressFamily
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Sat May 15 20:08:52 2004 | http://epydoc.sf.net |