Class TCP
An established communication based on an underlying Tornado IOStream.
Declaration
source linkDocumentation
Methods
▶ def __init__(self, stream, local_addr, peer_addr, deserialize=True) override ▶ def abort(self) overrideinherited doc Close the communication immediately and abruptly. Useful in destructors or generators' ``finally`` blocks.
▶ def close(self) override @gen.coroutineinherited doc Close the communication cleanly. This will attempt to flush outgoing buffers before actually closing the underlying transport.
▶ def closed(self) overrideinherited doc Return whether the stream is closed.
▶ def extra_info(self) override @propertyinherited doc Return backend-specific information about the communication, as a dict. Typically, this is information which is initialized when the communication is established and doesn't vary afterwards.
▶ def local_address(self) override @propertyinherited doc The local address. For logging and debugging purposes only.
▶ def peer_address(self) override @propertyinherited doc The peer's address. For logging and debugging purposes only.