|
virtual void | Add (Socket *socket)=0 |
| Add a socket for polling; Multiple sockets can be polled together by adding them into the same poller.
|
|
virtual Socket * | Wait (int timeout)=0 |
| Poll for all sockets added into this poller. More...
|
|
virtual Socket* singa::BasePoller::Wait |
( |
int |
timeout | ) |
|
|
pure virtual |
Poll for all sockets added into this poller.
- Parameters
-
timeout | stop after this number of mseconds |
- Returns
- pointer to the socket if it has one message in the receiving queue; nullptr if no message in any sockets,
Implemented in singa::Poller.
The documentation for this class was generated from the following file:
- /home/wangwei/program/asf/incubator-singa/include/communication/socket.h