X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=blobdiff_plain;f=src%2Fcommand_server.cpp;fp=src%2Fcommand_server.cpp;h=4f386ec97b14e9952a17abd9cbf05adb2115139a;hp=2aa4fc0483c1c3aae3f21156edb84505e596ef85;hb=45a2ebc9695c4d7be6548b7e0f800d117ae56a0b;hpb=04d86ba4ad4f14ab08f38804e772ec46a8ac92b0 diff --git a/src/command_server.cpp b/src/command_server.cpp index 2aa4fc0..4f386ec 100644 --- a/src/command_server.cpp +++ b/src/command_server.cpp @@ -123,12 +123,12 @@ void command_server::handle_packet(const std::string& packet, server_connection* } /** @brief handle incoming commands - @param usec_timeout wait until new data is found, max timeout usecs. - -1: wait endless, 0: no timeout + @param[in,out] usec_timeout wait until new data is found, max timeout usecs. + -1: wait endless, 0: instant return */ -void command_server::handle(long long usec_timeout) +void command_server::handle(long long usec_timeout, long long* usec_timeout_remaining) { - if (s.fill_buffer(usec_timeout)) + if (s.fill_buffer(usec_timeout,usec_timeout_remaining)) { string packet; unsigned int conn_id;