Home | Trees | Index | Help |
---|
Package twisted :: Package internet :: Module tcp :: Class Server |
|
Logger
--+ |FileDescriptor
--+ |Ephemeral
--+ |Connection
--+ | Server
Server
Serverside socket-stream connection class.
I am a serverside network connection transport; a socket which came from an accept() on a server.Method Summary | |
---|---|
Server(sock, protocol, client, server, sessionno) | |
(inherited from Ephemeral )
| |
A string representation of this connection. | |
(inherited from Ephemeral )
| |
See abstract.FileDescriptor.connectionLost(). (inherited from Connection )
| |
Calls self.protocol.dataReceived with all available data. (inherited from Connection )
| |
Called when data is available for writing. (inherited from FileDescriptor )
| |
File Descriptor number for select(). (inherited from FileDescriptor )
| |
Returns a tuple of ('INET', hostname, port). | |
Returns a tuple of ('INET', hostname, port), indicating the connected client's address. | |
(inherited from Connection )
| |
(inherited from Logger )
| |
Return the prefix to log with when I own the logging thread. (inherited from Connection )
| |
Close the connection at the next available opportunity. (inherited from FileDescriptor )
| |
(inherited from FileDescriptor )
| |
Register to receive data from a producer. (inherited from FileDescriptor )
| |
(inherited from FileDescriptor )
| |
(inherited from Connection )
| |
Start waiting for read availability. (inherited from FileDescriptor )
| |
Start waiting for write availability. (inherited from FileDescriptor )
| |
Stop consuming data. (inherited from FileDescriptor )
| |
(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 )
| |
Reliably write some data. (inherited from FileDescriptor )
| |
(inherited from FileDescriptor )
| |
Connection.writeSomeData(data) -> #of bytes written | CONNECTION_LOST This writes as much data as possible to the socket and returns either the number of bytes read (which is positive) or a connection error code (which is negative) (inherited from Connection )
|
Method Details |
---|
__init__(self,
sock,
protocol,
client,
server,
sessionno)
|
__repr__(self)
A string representation of this connection.
|
getHost(self)Returns a tuple of ('INET', hostname, port). This indicates the servers address. |
getPeer(self)Returns a tuple of ('INET', hostname, port), indicating the connected client's address. |
Home | Trees | Index | Help |
---|
Generated by Epydoc 1.2 prerelease on Wed Jan 29 06:25:41 2003 | http://epydoc.sf.net |