diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2008-09-13 02:23:04 +0200 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2008-09-13 02:23:04 +0200 |
commit | 920c506d477bd7f357e05590e8cdedf8e5e8a1b8 (patch) | |
tree | ae160560e38c6757ca3e37911c4d1196b163da9b /src/mad.cpp | |
parent | 47d7a53099be598c26be4de63e9d8fe52c2e0e66 (diff) | |
download | mad-920c506d477bd7f357e05590e8cdedf8e5e8a1b8.tar mad-920c506d477bd7f357e05590e8cdedf8e5e8a1b8.zip |
Einige Umstrukturierungen an den RequestHandler-Klassen
Diffstat (limited to 'src/mad.cpp')
-rw-r--r-- | src/mad.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mad.cpp b/src/mad.cpp index dc3241e..177b88a 100644 --- a/src/mad.cpp +++ b/src/mad.cpp @@ -20,8 +20,10 @@ #include "Net/ClientConnection.h" #include "Net/IPAddress.h" #include "Common/RequestManager.h" +#include "Common/Request/IdentifyRequest.h" #include <iostream> +#include <unistd.h> int main() { @@ -42,6 +44,10 @@ int main() { requestManager.registerConnection(connection); + char hostname[256]; + gethostname(hostname, sizeof(hostname)); + Mad::Common::Request::IdentifyRequest::send(connection, requestManager, hostname); + while(connection->isConnected()) { struct pollfd fd = connection->getPollfd(); |