Commit 7c31ea52 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(Connection): Replaced the session_start field with connect_time and

	login_time.  All users updated.  Removed the hostname field,
	since that is now stored as isc_session->remote.  Added
	dns_done, blocked_by_dns, and remote_ip.
parent 6994d249
/*
* $Id: connections.h,v 0.65 2003/08/04 06:54:22 ceder Exp $
* $Id: connections.h,v 0.66 2003/08/05 09:51:33 ceder Exp $
* Copyright (C) 1991-2002 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -23,7 +23,7 @@
* Please mail bug reports to bug-lyskom@lysator.liu.se.
*/
/*
* $Id: connections.h,v 0.65 2003/08/04 06:54:22 ceder Exp $
* $Id: connections.h,v 0.66 2003/08/05 09:51:33 ceder Exp $
*
* connections.h -- The top level of the communication packet.
*
......@@ -85,14 +85,13 @@ typedef struct connection {
Pers_no pers_no; /* 0 if not yet logged in. */
Person * person; /* NULL if not yet logged in. */
struct timeval session_start; /* the time when the current session
was started */
struct timeval connect_time; /* When did the client connect? */
struct timeval login_time; /* Time of connect, login or logout */
Conf_no cwc; /* Current working conference */
String what_am_i_doing;
unsigned char ena_level; /* Enable level */
String username; /* Given userid. */
String hostname; /* Real hostname */
String ident_user; /* Real username */
String username; /* Given userid (from handshake). */
String ident_user; /* Real username (IDENT lookup) */
String client_name; /* See doc/clients.assigned */
String client_version;
Session_flags flags;
......@@ -100,11 +99,15 @@ typedef struct connection {
Under protocol A, no async
messages are sent until
this bit is set. */
Bool dns_done; /* Set once DNS reverse
lookup is completed. */
Bool blocked_by_dns; /* Disabled waiting for DNS reply? */
Bool want_async[ay_dummy_last]; /* Async messages to get */
/* The following are used by server/connections.c */
struct isc_scb *isc_session;
String remote_ip; /* The IP address. */
char *peer; /* For dump_connections().
This holds the IP address,
a space, and the port
......
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