class ITCPTransport(ITransport): (source)
Known subclasses: twisted.internet.interfaces.ISSLTransport
, twisted.internet.interfaces.ITLSTransport
Known implementations: twisted.internet.iocpreactor.tcp.Connection
, twisted.internet.tcp.Connection
A TCP based transport.
Method | abort |
Close the connection abruptly. |
Method | get |
Returns IPv4Address or IPv6Address . |
Method | get |
Returns IPv4Address or IPv6Address . |
Method | get |
Return if SO_KEEPALIVE is enabled. |
Method | get |
Return if TCP_NODELAY is enabled. |
Method | lose |
Half-close the write side of a TCP connection. |
Method | set |
Enable/disable SO_KEEPALIVE. |
Method | set |
Enable/disable TCP_NODELAY. |
Inherited from ITransport
:
Method | lose |
Close my connection, after writing all pending data. |
Method | write |
Write some data to the physical connection, in sequence, in a non-blocking fashion. |
Method | write |
Write an iterable of byte strings to the physical connection. |
Close the connection abruptly.
Discards any buffered data, stops any registered producer, and, if possible, notifies the other end of the unclean closure.
Present Since | |
11.1 |
Half-close the write side of a TCP connection.
If the protocol instance this is attached to provides IHalfCloseableProtocol, it will get notified when the operation is done. When closing write connection, as with loseConnection this will only happen when buffer has emptied and there is no registered producer.