当前位置: 首页 > 文档资料 > Tornado 用户手册 >

tornado.tcpclient — IOStream connection factory

优质
小牛编辑
133浏览
2023-12-01

A non-blocking TCP connection factory.

class tornado.tcpclient.TCPClient(resolver=None, io_loop=None)

A non-blocking TCP connection factory.

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

connect(*args, **kwargs)

Connect to the given host and port.

Asynchronously returns an (or if ssl_options is not None).