diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2008-09-08 03:50:42 +0200 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2008-09-08 03:50:42 +0200 |
commit | 87aad429d08b2a352f0f4345e45a03a0a7da2407 (patch) | |
tree | 2d1edba8fedbf8d6a77acb7223def7012437ce76 /src/madc.cpp | |
parent | 406510059972fdbfb14bc8985980f52c655d5946 (diff) | |
download | mad-87aad429d08b2a352f0f4345e45a03a0a7da2407.tar mad-87aad429d08b2a352f0f4345e45a03a0a7da2407.zip |
GSSAPI-Authentifikation fertig
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()) { |