summaryrefslogtreecommitdiffstats
path: root/src/mad.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mad.cpp')
-rw-r--r--src/mad.cpp6
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();