企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持知识库和私有化部署方案 广告
### Navigation - [index](# "General Index") - [modules](# "Python Module Index") | - [next](# "tornado.tcpserver — Basic IOStream-based TCP server") | - [previous](# "tornado.netutil — Miscellaneous network utilities") | - [Tornado 4.4.dev1 documentation](#) » - [Asynchronous networking](#) » # `tornado.tcpclient` — [`IOStream`](# "tornado.iostream.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_loop` argument is deprecated. `connect`(*host*, *port*, *af=<AddressFamily.AF_UNSPEC: 0>*, *ssl_options=None*, *max_buffer_size=None*)[[source]](#) Connect to the given host and port. Asynchronously returns an [`IOStream`](# "tornado.iostream.IOStream") (or [`SSLIOStream`](# "tornado.iostream.SSLIOStream") if`ssl_options` is not None). © Copyright 2009-2016, The Tornado Authors. Created using [Sphinx](http://sphinx-doc.org/) 1.3.5.