Commit 5e62b985 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(enum kill_state): New enum.

(Connection): Replaced the "Bool kill_pending" field with a "enum
	kill_stat kill_status" field.
parent 439a654a
/*
* $Id: connections.h,v 0.75 2003/08/22 06:45:16 ceder Exp $
* $Id: connections.h,v 0.76 2003/08/22 20:33:40 ceder Exp $
* Copyright (C) 1991-2002 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -23,7 +23,7 @@
* Please report bugs at http://bugzilla.lysator.liu.se/.
*/
/*
* $Id: connections.h,v 0.75 2003/08/22 06:45:16 ceder Exp $
* $Id: connections.h,v 0.76 2003/08/22 20:33:40 ceder Exp $
*
* connections.h -- The top level of the communication packet.
*
......@@ -76,6 +76,13 @@
*/
#endif
enum kill_state
{
ks_none, /* Not yet killed. */
ks_pending, /* Kill pending. */
ks_dying, /* check_kill_flg() is killing this. */
};
typedef struct connection {
struct connection * prev;
struct connection * next;
......@@ -167,7 +174,7 @@ typedef struct connection {
String_size first_to_parse; /* Index into unparsed. */
Bool more_to_parse; /* Any chance that there is anything
left in unparsed? */
Bool kill_pending; /* Kill pending? */
enum kill_state kill_status; /* Is this client dying? */
unsigned int penalty; /* Number of penalty points
for this session. */
unsigned int penalty_generation; /* Penalties are aged. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment