t.i.i.t.Server(Connection) : class documentation

Part of twisted.internet.iocpreactor.tcp View Source View In Hierarchy

Serverside socket-stream connection class.

I am a serverside network connection transport; a socket which came from an accept() on a server.
Method __init__ Server(sock, protocol, client, server, sessionno)
Method __repr__ A string representation of this connection.
Method getHost Returns an IPv4Address.
Method getPeer Returns an IPv4Address.

Inherited from Connection:

Method getHandle Return a system- and reactor-specific handle.
Method dataReceived Undocumented
Method readFromHandle Undocumented
Method writeToHandle Undocumented
Method readConnectionLost Undocumented
Method connectionLost Undocumented
Method logPrefix Return the prefix to log with when I own the logging thread.
Method getTcpNoDelay Return if TCP_NODELAY is enabled.
Method setTcpNoDelay Enable/disable TCP_NODELAY.
Method getTcpKeepAlive Return if SO_KEEPALIVE is enabled.
Method setTcpKeepAlive Enable/disable SO_KEEPALIVE.
Method _closeWriteConnection Undocumented

Inherited from _SocketCloser (via Connection):

Method _closeSocket Undocumented
def __init__(self, sock, protocol, clientAddr, serverAddr, sessionno, reactor): (source)

Server(sock, protocol, client, server, sessionno)

Initialize me with a socket, a protocol, a descriptor for my peer (a tuple of host, port describing the other end of the connection), an instance of Port, and a session number.
def __repr__(self): (source)
A string representation of this connection.
def getHost(self): (source)

Returns an IPv4Address.

This indicates the server's address.
def getPeer(self): (source)

Returns an IPv4Address.

This indicates the client's address.
API Documentation for Twisted, generated by pydoctor at 2011-10-27 16:02:37.