X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=blobdiff_plain;f=src%2Fsocket_handler.cpp;h=ed1489581177d6d8b7a8d4df3735280a53892940;hp=98944b0fd1e9d41ed7ab97b421bfd02698dbde6f;hb=6f6d24c02ef3e3a7600432bed1c801a611c3c918;hpb=6be7b70f2216eb743cfd6960f7a3f0ef62eacde7 diff --git a/src/socket_handler.cpp b/src/socket_handler.cpp index 98944b0..ed14895 100644 --- a/src/socket_handler.cpp +++ b/src/socket_handler.cpp @@ -126,6 +126,7 @@ bool socket_handler::data_waiting(long long usec_timeout,long long* usec_timeout int ret=select (FD_SETSIZE, &active_fd_set, NULL, NULL, timeout_ptr); // return the timeout we did not use + // todo: this is linux specific according to man 2 select if (usec_timeout > 0 && usec_timeout_remaining != NULL) *usec_timeout_remaining=(tval.tv_sec*1000000)+tval.tv_usec;