fastdo  0.6.8
eiennet::io::SelectWrite类 参考

SelectWrite Io模型 更多...

#include <eiennet_socket.hpp>

类 eiennet::io::SelectWrite 继承关系图:
eiennet::io::SelectWrite 的协作图:

Public 成员函数

 SelectWrite ()
 
 SelectWrite (Socket const &sock)
 
 SelectWrite (Socket const *sock)
 
 SelectWrite (int fd)
 
 SelectWrite (winux::Mixed const &fds)
 
 ~SelectWrite ()
 
SelectWritesetWriteSock (Socket const &sock)
 
SelectWritesetWriteSock (Socket const *sock)
 
SelectWritesetWriteFd (int fd)
 
SelectWritedelWriteFd (int fd)
 
SelectWritesetWriteFds (winux::Mixed const &fds)
 
SelectWriteclear ()
 
int hasWriteSock (Socket const &sock) const
 
int hasWriteFd (int fd) const
 
int wait (double sec=-1)
 等待相应的fd就绪。sec<1表示小于1秒的时间,sec<0表示无限等待。eg: sec=1.5表示等待1500ms 更多...
 

Protected 属性

winux::MembersWrapper< struct SelectWrite_Data > _self
 

详细描述

SelectWrite Io模型

在文件 eiennet_socket.hpp856 行定义.

构造及析构函数说明

eiennet::io::SelectWrite::SelectWrite ( )
eiennet::io::SelectWrite::SelectWrite ( Socket const &  sock)
eiennet::io::SelectWrite::SelectWrite ( Socket const *  sock)
eiennet::io::SelectWrite::SelectWrite ( int  fd)
eiennet::io::SelectWrite::SelectWrite ( winux::Mixed const &  fds)
eiennet::io::SelectWrite::~SelectWrite ( )

成员函数说明

SelectWrite& eiennet::io::SelectWrite::clear ( )
SelectWrite& eiennet::io::SelectWrite::delWriteFd ( int  fd)
int eiennet::io::SelectWrite::hasWriteFd ( int  fd) const
int eiennet::io::SelectWrite::hasWriteSock ( Socket const &  sock) const
inline

在文件 eiennet_socket.hpp872 行定义.

函数调用图:

SelectWrite& eiennet::io::SelectWrite::setWriteFd ( int  fd)
SelectWrite& eiennet::io::SelectWrite::setWriteFds ( winux::Mixed const &  fds)
SelectWrite& eiennet::io::SelectWrite::setWriteSock ( Socket const &  sock)
inline

在文件 eiennet_socket.hpp866 行定义.

函数调用图:

SelectWrite& eiennet::io::SelectWrite::setWriteSock ( Socket const *  sock)
inline

在文件 eiennet_socket.hpp867 行定义.

函数调用图:

int eiennet::io::SelectWrite::wait ( double  sec = -1)

等待相应的fd就绪。sec<1表示小于1秒的时间,sec<0表示无限等待。eg: sec=1.5表示等待1500ms

若有fd就绪则返回就绪的fd的总数;若超时则返回0;若有错误发生则返回SOCKET_ERROR(-1)。
可用Socket::ErrNo()查看select()调用的错误,可用Socket::getError()查看select()无错时socket发生的错误。

类成员变量说明

winux::MembersWrapper<struct SelectWrite_Data> eiennet::io::SelectWrite::_self
protected

在文件 eiennet_socket.hpp881 行定义.


该类的文档由以下文件生成: