diff options
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 a70be5a..3b1a9d8 100644 --- a/src/mad.cpp +++ b/src/mad.cpp @@ -19,8 +19,10 @@ #include "Net/ClientConnection.h" #include "Net/IPAddress.h" +#include "Common/Backends/SystemBackendProc.h" #include "Common/RequestManager.h" #include "Common/Requests/IdentifyRequest.h" +#include "Common/RequestHandlers/StatusRequestHandler.h" #include <iostream> #include <unistd.h> @@ -30,6 +32,10 @@ int main() { Mad::Net::Connection::init(); Mad::Common::RequestManager::init(false); + Mad::Common::RequestManager::getRequestManager()->registerPacketType<Mad::Common::RequestHandlers::StatusRequestHandler>(Mad::Net::Packet::STATUS); + + Mad::Common::Backends::SystemBackendProc::useBackend(); + Mad::Net::ClientConnection *connection = new Mad::Net::ClientConnection; try { |