MCPcopy Create free account
hub / github.com/Tencent/mars / Select

Method Select

mars/comm/windows/SocketSelect/SocketSelect.cpp:195–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193}
194
195int SocketSelect::Select() {
196 int ret = select(maxsocket_ + 1, &readfd_, &writefd_, &exceptionfd_, NULL);
197
198 if (0 > ret) errno_ = errno;
199
200 if (autoclear_) Breaker().Clear();
201
202 return ret;
203}
204
205int SocketSelect::Select(int _msec) {
206 ASSERT(0 <= _msec);

Callers

nothing calls this directly

Calls 2

selectClass · 0.50
ClearMethod · 0.45

Tested by

no test coverage detected