|
| aio_socket_stream (aio_handle *handle, ACL_ASTREAM *stream, bool opened=false) |
|
| aio_socket_stream (aio_handle *handle, int fd) |
|
void | add_open_callback (aio_open_callback *callback) |
|
int | del_open_callback (aio_open_callback *callback=NULL) |
|
int | disable_open_callback (aio_open_callback *callback=NULL) |
|
int | enable_open_callback (aio_open_callback *callback=NULL) |
|
bool | is_opened (void) const |
|
| aio_istream (aio_handle *handle) |
|
| aio_istream (aio_handle *handle, int fd) |
|
void | add_read_callback (aio_callback *callback) |
|
int | del_read_callback (aio_callback *callback=NULL) |
|
int | disable_read_callback (aio_callback *callback=NULL) |
|
int | enable_read_callback (aio_callback *callback=NULL) |
|
void | gets (int timeout=0, bool nonl=true, long long int delay=0, aio_timer_reader *callback=NULL) |
|
void | read (int count=0, int timeout=0, long long int delay=0, aio_timer_reader *callback=NULL) |
|
void | read_wait (int timeout=0) |
|
void | disable_read (void) |
|
void | keep_read (bool onoff) |
|
bool | keep_read (void) const |
|
aio_istream & | set_buf_max (int max) |
|
int | get_buf_max (void) const |
|
| aio_stream (aio_handle *handle) |
|
void | close (void) |
|
void | add_close_callback (aio_callback *callback) |
|
void | add_timeout_callback (aio_callback *callback) |
|
int | del_close_callback (aio_callback *callback=NULL) |
|
int | del_timeout_callback (aio_callback *callback=NULL) |
|
int | disable_close_callback (aio_callback *callback=NULL) |
|
int | disable_timeout_callback (aio_callback *callback=NULL) |
|
int | enable_close_callback (aio_callback *callback=NULL) |
|
int | enable_timeout_callback (aio_callback *callback=NULL) |
|
ACL_ASTREAM * | get_astream (void) const |
|
ACL_VSTREAM * | get_vstream (void) const |
|
int | get_socket (void) const |
|
int | sock_handle (void) const |
|
const char * | get_peer (bool full=false) const |
|
const char * | get_local (bool full=false) const |
|
aio_handle & | get_handle (void) const |
|
stream_hook * | setup_hook (stream_hook *hook) |
|
stream_hook * | get_hook (void) const |
|
stream_hook * | remove_hook (void) |
|
| aio_ostream (aio_handle *handle) |
|
| aio_ostream (aio_handle *handle, int fd) |
|
void | add_write_callback (aio_callback *callback) |
|
int | del_write_callback (aio_callback *callback=NULL) |
|
int | disable_write_callback (aio_callback *callback=NULL) |
|
int | enable_write_callback (aio_callback *callback=NULL) |
|
void | write (const void *data, int len, long long int delay=0, aio_timer_writer *callback=NULL) |
|
void | format (const char *fmt,...) ACL_CPP_PRINTF(2 |
|
void void | vformat (const char *fmt, va_list ap) |
|
void | write_wait (int timeout=0) |
|
void | disable_write (void) |
|
网络异步流类,该类继承了异步读写流,同时该类只能在堆上分配, 不能在栈上分配,并且该类结束时应用不必释放该类对象,因为异步流 框架内部会自动释放该类对象,应用可以调用 close 主动关闭流
在文件 aio_socket_stream.hpp 第 40 行定义.