From 24925a24ec012c6dda40f5e9ab6ab139ca1fde8b Mon Sep 17 00:00:00 2001 From: irungentoo Date: Thu, 27 Jun 2013 10:01:31 -0400 Subject: Cleaned up some stuff. --- core/network.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'core/network.c') diff --git a/core/network.c b/core/network.c index 70536abf..81da3f1b 100644 --- a/core/network.c +++ b/core/network.c @@ -121,4 +121,13 @@ int init_networking(IP ip ,uint16_t port) bind(sock, (struct sockaddr*)&addr, sizeof(addr)); return 0; +} + +//function to cleanup networking stuff +void shutdown_networking() +{ + #ifdef WIN32 + WSACleanup(); + #endif + return; } \ No newline at end of file -- cgit v1.2.3