diff options
Diffstat (limited to 'core/network.c')
-rw-r--r-- | core/network.c | 9 |
1 files changed, 9 insertions, 0 deletions
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) | |||
121 | bind(sock, (struct sockaddr*)&addr, sizeof(addr)); | 121 | bind(sock, (struct sockaddr*)&addr, sizeof(addr)); |
122 | return 0; | 122 | return 0; |
123 | 123 | ||
124 | } | ||
125 | |||
126 | //function to cleanup networking stuff | ||
127 | void shutdown_networking() | ||
128 | { | ||
129 | #ifdef WIN32 | ||
130 | WSACleanup(); | ||
131 | #endif | ||
132 | return; | ||
124 | } \ No newline at end of file | 133 | } \ No newline at end of file |