Home | Trees | Index | Help |
|
---|
Package twisted :: Package internet :: Module unix :: Class Port |
|
Ephemeral
--+ |Logger
--+ |FileDescriptor
--+ |BasePort
--+ |Port
--+ | Port
Method Summary | |
---|---|
__init__(self,
fileName,
factory,
backlog,
mode,
reactor,
wantPID)
| |
__repr__(self)
| |
_buildAddr(self,
name)
| |
Cleans up my socket. | |
Returns a UNIXAddress. | |
Create and bind my socket, and begin listening on it. | |
Inherited from Port | |
| |
| |
Called when my socket is ready for reading. | |
Returns the name of my class, to prefix log entries with. | |
Stop accepting connections on this port. | |
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. | |
Reliably write some data. | |
| |
Write as much as possible of the given data, immediately. | |
Inherited from Ephemeral | |
| |
|
Class Variable Summary | |
---|---|
int |
addressFamily = 1 |
int |
socketType = 1 |
class |
transport = twisted.internet.unix.Server |
Inherited from Port | |
int |
backlog = 5 |
str |
interface = ''
|
int |
sessionno = 0 |
Inherited from FileDescriptor | |
tuple |
__implements__ = (<class twisted.internet.interfaces.IPr...
|
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 |
---|
connectionLost(self, reason)Cleans up my socket.
|
getHost(self)Returns a UNIXAddress. This indicates the server's address.
|
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.
|
Class Variable Details |
---|
addressFamily
|
socketType
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Sat May 15 20:08:56 2004 | http://epydoc.sf.net |