|
|
@ -68,18 +68,17 @@ EthernetHandleSet_new(void);
|
|
|
|
void
|
|
|
|
void
|
|
|
|
EthernetHandleSet_addSocket(EthernetHandleSet self, const EthernetSocket sock);
|
|
|
|
EthernetHandleSet_addSocket(EthernetHandleSet self, const EthernetSocket sock);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* \brief wait for a socket to become ready
|
|
|
|
* \brief wait for a socket to become ready
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* This function is corresponding to the BSD socket select function.
|
|
|
|
* This function is corresponding to the BSD socket select function.
|
|
|
|
* It returns the number of sockets on which data is pending or 0 if no data is pending
|
|
|
|
* The function will return after \p timeoutMs ms if no data is pending.
|
|
|
|
* on any of the monitored connections. The function will return after "timeout" ms if no
|
|
|
|
|
|
|
|
* data is pending.
|
|
|
|
|
|
|
|
* The function shall return -1 if a socket error occures.
|
|
|
|
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* \param self the EthernetHandleSet instance
|
|
|
|
* \param self the HandleSet instance
|
|
|
|
* \param timeout in milliseconds (ms)
|
|
|
|
* \param timeout in milliseconds (ms)
|
|
|
|
|
|
|
|
* \return It returns the number of sockets on which data is pending
|
|
|
|
|
|
|
|
* or 0 if no data is pending on any of the monitored connections.
|
|
|
|
|
|
|
|
* The function shall return -1 if a socket error occures.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
int
|
|
|
|
int
|
|
|
|
EthernetHandleSet_waitReady(EthernetHandleSet self, unsigned int timeoutMs);
|
|
|
|
EthernetHandleSet_waitReady(EthernetHandleSet self, unsigned int timeoutMs);
|
|
|
|