From 920c506d477bd7f357e05590e8cdedf8e5e8a1b8 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sat, 13 Sep 2008 02:23:04 +0200 Subject: Einige Umstrukturierungen an den RequestHandler-Klassen --- src/mad.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/mad.cpp') 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 +#include 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(); -- cgit v1.2.3