diff options
Diffstat (limited to 'src/mad-core.cpp')
-rw-r--r-- | src/mad-core.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/mad-core.cpp b/src/mad-core.cpp index 9524078..0c1630b 100644 --- a/src/mad-core.cpp +++ b/src/mad-core.cpp @@ -17,6 +17,24 @@ * with this program. If not, see <http://www.gnu.org/licenses/>. */ +#include "Net/ServerConnection.h" +#include "Net/IPAddress.h" +#include <iostream> + int main() { + Mad::Net::Connection::init(); + + Mad::Net::ServerConnection connection; + + connection.loadDHParams("dh.pem"); + + connection.listen(Mad::Net::IPAddress("0.0.0.0", 6666)); + + while(!connection.recieve()); + + connection.disconnect(); + + Mad::Net::Connection::deinit(); + return 0; } |