| Home | Trees | Index | Help |
|---|
| Package twisted :: Package internet :: Module interfaces :: Class ITCPTransport |
|
NonMetaInterface--+ |ITransport--+ | ITCPTransport
ITLSTransport,
ISSLTransport| Method Summary | |
|---|---|
Returns tuple ('INET', host, port). | |
Returns tuple ('INET', host, port). | |
Return if SO_KEEPALIVE enabled. | |
Return if TCP_NODELAY is enabled. | |
Close my connection, after writing all pending data. (inherited from ITransport)
| |
Enable/disable SO_KEEPALIVE. | |
Enable/disable TCP_NODELAY. | |
Write some data to the physical connection, in sequence. (inherited from ITransport)
| |
Write a list of strings to the physical connection. (inherited from ITransport)
| |
| Method Details |
|---|
getHost(self)Returns tuple ('INET', host, port). |
getPeer(self)Returns tuple ('INET', host, port). |
getTcpKeepAlive(self)Return if SO_KEEPALIVE enabled. |
getTcpNoDelay(self)Return if TCP_NODELAY is enabled. |
setTcpKeepAlive(self, enabled)Enable/disable SO_KEEPALIVE. Enabling SO_KEEPALIVE sends packets periodically when the connection is otherwise idle, usually once every two hours. They are intended to allow detection of lost peers in a non-infinite amount of time. |
setTcpNoDelay(self, enabled)Enable/disable TCP_NODELAY. Enabling TCP_NODELAY turns off Nagle's algorithm. Small packets are sent sooner, possibly at the expense of overall throughput. |
| Home | Trees | Index | Help |
|---|
| Generated by Epydoc 1.1 on Fri Jun 27 03:45:31 2003 | http://epydoc.sf.net |