SelectWrite Io模型
更多...
#include <eiennet_socket.hpp>
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::setWriteFd |
( |
int |
fd | ) |
|
SelectWrite& eiennet::io::SelectWrite::delWriteFd |
( |
int |
fd | ) |
|
int eiennet::io::SelectWrite::hasWriteSock |
( |
Socket const & |
sock | ) |
const |
|
inline |
int eiennet::io::SelectWrite::hasWriteFd |
( |
int |
fd | ) |
const |
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::Members<struct SelectWrite_Data> eiennet::io::SelectWrite::_self |
|
protected |
该类的文档由以下文件生成: