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

SelectRead Io模型 更多...

#include <eiennet_socket.hpp>

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

Public 成员函数

 SelectRead ()
 
 SelectRead (Socket const &sock)
 
 SelectRead (Socket const *sock)
 
 SelectRead (int fd)
 
 SelectRead (winux::Mixed const &fds)
 
 ~SelectRead ()
 
SelectReadsetReadSock (Socket const &sock)
 
SelectReadsetReadSock (Socket const *sock)
 
SelectReadsetReadFd (int fd)
 
SelectReaddelReadFd (int fd)
 
SelectReadsetReadFds (winux::Mixed const &fds)
 
SelectReadclear ()
 
int hasReadSock (Socket const &sock) const
 
int hasReadFd (int fd) const
 
int wait (double sec=-1)
 等待相应的fd就绪。sec<1表示小于1秒的时间,sec<0表示无限等待。eg: sec=1.5表示等待1500ms 更多...
 

Protected 属性

winux::MembersWrapper< struct SelectRead_Data > _self
 

详细描述

SelectRead Io模型

在文件 eiennet_socket.hpp826 行定义.

构造及析构函数说明

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

成员函数说明

SelectRead& eiennet::io::SelectRead::clear ( )
SelectRead& eiennet::io::SelectRead::delReadFd ( int  fd)
int eiennet::io::SelectRead::hasReadFd ( int  fd) const
int eiennet::io::SelectRead::hasReadSock ( Socket const &  sock) const
inline

在文件 eiennet_socket.hpp842 行定义.

函数调用图:

SelectRead& eiennet::io::SelectRead::setReadFd ( int  fd)
SelectRead& eiennet::io::SelectRead::setReadFds ( winux::Mixed const &  fds)
SelectRead& eiennet::io::SelectRead::setReadSock ( Socket const &  sock)
inline

在文件 eiennet_socket.hpp836 行定义.

函数调用图:

SelectRead& eiennet::io::SelectRead::setReadSock ( Socket const *  sock)
inline

在文件 eiennet_socket.hpp837 行定义.

函数调用图:

int eiennet::io::SelectRead::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 SelectRead_Data> eiennet::io::SelectRead::_self
protected

在文件 eiennet_socket.hpp851 行定义.


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