X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=blobdiff_plain;f=src%2Fsocket_handler.hxx;h=82ccdad368a6e13edd53c606ea6c2955688f5301;hp=32fbbf4d2f6df51c1717fbf016450fed3592829a;hb=fc922d87a02a9c171b9d95c4b40b8ae85f0fadc0;hpb=a7170401dd90dc79cc7d7a808cfe18a06c7e983b diff --git a/src/socket_handler.hxx b/src/socket_handler.hxx index 32fbbf4..82ccdad 100644 --- a/src/socket_handler.hxx +++ b/src/socket_handler.hxx @@ -37,7 +37,7 @@ class socket_handler socket_type_value socket_type; - bool data_waiting(long long usec_timeout=-1); + bool data_waiting(long long usec_timeout,long long *timeout_remaining=NULL); protected: int sock; @@ -54,7 +54,7 @@ class socket_handler virtual void close(); - bool fill_buffer(std::string& buffer, long long usec_timeout); + bool fill_buffer(std::string& buffer, long long usec_timeout, long long*timeout_remaining=NULL); bool fill_buffer(std::string& buffer); public: