summaryrefslogtreecommitdiff
path: root/src/net_server.h
diff options
context:
space:
mode:
authorSimon Howard2006-01-02 21:04:10 +0000
committerSimon Howard2006-01-02 21:04:10 +0000
commit58656316f7e115a321a155f905b2daaefcde537d (patch)
tree27f573e0b2758e54ee7b1c5577b8a65c53c57ba9 /src/net_server.h
parentf65633b5f50be8581ec2de7c06ca9a225d48b82a (diff)
downloadchocolate-doom-58656316f7e115a321a155f905b2daaefcde537d.tar.gz
chocolate-doom-58656316f7e115a321a155f905b2daaefcde537d.tar.bz2
chocolate-doom-58656316f7e115a321a155f905b2daaefcde537d.zip
Create NET_SV_Shutdown function to shut down the server. Call it
when quitting the game. Print the IP of the server correctly when connecting. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 250
Diffstat (limited to 'src/net_server.h')
-rw-r--r--src/net_server.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/net_server.h b/src/net_server.h
index 21922919..81eaf4a4 100644
--- a/src/net_server.h
+++ b/src/net_server.h
@@ -1,7 +1,7 @@
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
-// $Id: net_server.h 239 2006-01-02 00:00:08Z fraggle $
+// $Id: net_server.h 250 2006-01-02 21:04:10Z fraggle $
//
// Copyright(C) 2005 Simon Howard
//
@@ -21,6 +21,11 @@
// 02111-1307, USA.
//
// $Log$
+// Revision 1.3 2006/01/02 21:04:10 fraggle
+// Create NET_SV_Shutdown function to shut down the server. Call it
+// when quitting the game. Print the IP of the server correctly when
+// connecting.
+//
// Revision 1.2 2006/01/02 00:00:08 fraggle
// Neater prefixes: NET_Client -> NET_CL_. NET_Server -> NET_SV_.
//
@@ -43,5 +48,10 @@ void NET_SV_Init(void);
void NET_SV_Run(void);
+// Shut down the server
+// Blocks until all clients disconnect, or until a 5 second timeout
+
+void NET_SV_Shutdown(void);
+
#endif /* #ifndef NET_SERVER_H */