asyncio.BaseTransport

class asyncio.BaseTransport

Base class for transports.

close(self)

Close the transport. If the transport has a buffer for outgoing data, buffered data will be flushed asynchronously. No more data will be received. After all buffered data is flushed, the protocol’s connection_lost() method will be called with None as its argument.

is_closing(self)

Return True if the transport is closing or is closed.

New in version 3.5.1.

get_extra_info(name, default=None)

Return optional transport information. name is a string representing the piece of transport-specific information to get, default is the value to return if the information doesn’t exist.

This method allows transport implementations to easily expose channel-specific information.

Changed in version 3.5.1: 'ssl_object' info was added to SSL sockets.

doc_python
2016-10-07 17:26:42
Comments
Leave a Comment

Please login to continue.