[chocolate-doom] 42/79: Reject new connections if the server is not in the waiting state.
Jonathan Dowland
jmtd at moszumanska.debian.org
Mon Jan 30 15:07:23 UTC 2017
This is an automated email from the git hooks/post-receive script.
jmtd pushed a commit to annotated tag chocolate-doom-0.1.3
in repository chocolate-doom.
commit d5794db799a0aa47c227bf4e12b4ddaf2b4415ec
Author: Simon Howard <fraggle at gmail.com>
Date: Sun Jan 8 05:06:06 2006 +0000
Reject new connections if the server is not in the waiting state.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 270
---
src/net_server.c | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/src/net_server.c b/src/net_server.c
index d1cdfc8..26085f6 100644
--- a/src/net_server.c
+++ b/src/net_server.c
@@ -1,7 +1,7 @@
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
-// $Id: net_server.c 268 2006-01-08 04:52:26Z fraggle $
+// $Id: net_server.c 270 2006-01-08 05:06:06Z fraggle $
//
// Copyright(C) 2005 Simon Howard
//
@@ -21,6 +21,9 @@
// 02111-1307, USA.
//
// $Log$
+// Revision 1.16 2006/01/08 05:06:06 fraggle
+// Reject new connections if the server is not in the waiting state.
+//
// Revision 1.15 2006/01/08 04:52:26 fraggle
// Allow the server to reject clients
//
@@ -241,6 +244,13 @@ static void NET_SV_ParseSYN(net_packet_t *packet,
// received a valid SYN
+ // not accepting new connections?
+
+ if (server_state != SERVER_WAITING_START)
+ {
+ NET_SV_SendReject(addr, "Server is not currently accepting connections");
+ }
+
// allocate a client slot if there isn't one already
if (client == NULL)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/chocolate-doom.git
More information about the Pkg-games-commits
mailing list