BaseIOStream
数据结构
|
|
接口
接口 | 功能 | 特别说明 |
---|---|---|
write(data, callback=None) | ||
read_bytes(num_bytes, callback=None, streaming_callback=None, partial=False) | ||
read_util(delimiter, callback=None, max_bytes=None) | ||
read_until_regex(regex, callback=None, max_bytes=None) | ||
read_until_close(callback=None, streaming_callback=None) | ||
close(exc_info=False) | ||
set_close_callback(callback) | ||
closed() | ||
reading() | ||
writing() | ||
set_nodelay() | ||
fileno() | ||
close_fd() | ||
write_to_fd(data) | ||
read_from_fd() | ||
get_fd_error() |
IOStream
socket的读写接口
数据结构
|
|
接口
接口 | 功能 | 特别说明 |
---|---|---|
connect(address, callback=None, server_hostname=None) |