Part of twisted.internet.interfaces View Source View In Hierarchy
|Method||loseWriteConnection||Half-close the write side of a TCP connection.|
Inherited from ITransport:
|Method||write||Write some data to the physical connection, in sequence, in a non-blocking fashion.|
|Method||writeSequence||Write a list of strings to the physical connection.|
|Method||loseConnection||Close my connection, after writing all pending data.|
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.
TCP_NODELAYturns off Nagle's algorithm. Small packets are sent sooner, possibly at the expense of overall throughput.
SO_KEEPALIVEsends 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.