tornado.tcpclient — IOStream connection factory¶

A non-blocking TCP connection factory.

class tornado.tcpclient.TCPClient(resolver=None, io_loop=None)[源代码]

A non-blocking TCP connection factory.


在 4.1 版更改: The ioloop argument is deprecated.

connect(args, *kwargs_)[源代码]

Connect to the given host and port.

Asynchronously returns an IOStream (or SSLIOStream ifssl_options is not None).

原文:

https://tornado-zh-cn.readthedocs.io/zh_CN/latest/tcpclient.html