diff options
Diffstat (limited to 'src/madc.cpp')
-rw-r--r-- | src/madc.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/madc.cpp b/src/madc.cpp index 43b37d3..3732079 100644 --- a/src/madc.cpp +++ b/src/madc.cpp @@ -46,6 +46,16 @@ int main() { Mad::Common::Request::IdentifyRequest::send(connection, requestManager, "localhost"); Mad::Common::Request::GSSAPIAuthRequest::send(connection, requestManager, "host"); + + while(true) { + struct pollfd fd = connection->getPollfd(); + + if(poll(&fd, 1, 1500) > 0) + connection->sendReceive(fd.revents); + else + break; + } + Mad::Common::Request::DisconnectRequest::send(connection, requestManager); while(connection->isConnected()) { |