Home | Trees | Index | Help |
|
---|
Package twisted :: Package internet :: Module unix :: Class ConnectedDatagramPort |
|
Ephemeral
--+ |Logger
--+ |FileDescriptor
--+ |BasePort
--+ |Port
--+ |DatagramPort
--+ | ConnectedDatagramPort
Method Summary | |
---|---|
__init__(self,
addr,
proto,
maxPacketSize,
mode,
bindAddress,
reactor)
| |
connectionFailed(self,
reason)
| |
Called when my socket is ready for reading. | |
getPeer(self)
| |
Create and bind my socket, and begin listening on it. | |
Write a datagram. | |
Inherited from DatagramPort | |
| |
Cleans up my socket. | |
Returns an IPv4Address. | |
| |
Inherited from Port | |
| |
| |
'Connect' to remote server. | |
Return a socket object. | |
Returns the name of my class, to prefix log entries with. | |
Stop accepting connections on this port. | |
| |
| |
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...
|
Inherited from DatagramPort | |
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 |
---|
doRead(self)Called when my socket is ready for reading.
|
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, data)Write a datagram.
|
Class Variable Details |
---|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Sat May 15 20:08:14 2004 | http://epydoc.sf.net |