tornado.tcpclient — IOStream connection factory¶
A non-blocking TCP connection factory.
-
class
tornado.tcpclient.TCPClient(resolver=None, io_loop=None)[source]¶ A non-blocking TCP connection factory.
Changed in version 4.1: The
io_loopargument is deprecated.-
connect(*args, **kwargs)[source]¶ Connect to the given host and port.
Asynchronously returns an
IOStream(orSSLIOStreamifssl_optionsis not None).
-