fastdo
0.6.8
|
SelectExcept Io模型 更多...
#include <eiennet_socket.hpp>
Public 成员函数 | |
SelectExcept () | |
SelectExcept (Socket const &sock) | |
SelectExcept (Socket const *sock) | |
SelectExcept (int fd) | |
SelectExcept (winux::Mixed const &fds) | |
~SelectExcept () | |
SelectExcept & | setExceptSock (Socket const &sock) |
SelectExcept & | setExceptSock (Socket const *sock) |
SelectExcept & | setExceptFd (int fd) |
SelectExcept & | delExceptFd (int fd) |
SelectExcept & | setExceptFds (winux::Mixed const &fds) |
SelectExcept & | clear () |
int | hasExceptSock (Socket const &sock) const |
int | hasExceptFd (int fd) const |
int | wait (double sec=-1) |
等待相应的fd就绪。sec<1表示小于1秒的时间,sec<0表示无限等待。eg: sec=1.5表示等待1500ms 更多... | |
Protected 属性 | |
winux::MembersWrapper< struct SelectExcept_Data > | _self |
SelectExcept Io模型
在文件 eiennet_socket.hpp 第 886 行定义.
eiennet::io::SelectExcept::SelectExcept | ( | ) |
eiennet::io::SelectExcept::SelectExcept | ( | Socket const & | sock | ) |
eiennet::io::SelectExcept::SelectExcept | ( | Socket const * | sock | ) |
eiennet::io::SelectExcept::SelectExcept | ( | int | fd | ) |
eiennet::io::SelectExcept::SelectExcept | ( | winux::Mixed const & | fds | ) |
eiennet::io::SelectExcept::~SelectExcept | ( | ) |
SelectExcept& eiennet::io::SelectExcept::clear | ( | ) |
SelectExcept& eiennet::io::SelectExcept::delExceptFd | ( | int | fd | ) |
int eiennet::io::SelectExcept::hasExceptFd | ( | int | fd | ) | const |
|
inline |
SelectExcept& eiennet::io::SelectExcept::setExceptFd | ( | int | fd | ) |
SelectExcept& eiennet::io::SelectExcept::setExceptFds | ( | winux::Mixed const & | fds | ) |
|
inline |
|
inline |
int eiennet::io::SelectExcept::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发生的错误。
|
protected |
在文件 eiennet_socket.hpp 第 911 行定义.