X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=blobdiff_plain;f=src%2Fsocket_handler.hxx;h=82ccdad368a6e13edd53c606ea6c2955688f5301;hp=32fbbf4d2f6df51c1717fbf016450fed3592829a;hb=45a2ebc9695c4d7be6548b7e0f800d117ae56a0b;hpb=04d86ba4ad4f14ab08f38804e772ec46a8ac92b0 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: