mirror of
https://github.com/osmarks/ngircd.git
synced 2024-12-12 09:50:29 +00:00
- neue Funktion Client_SetHostname().
This commit is contained in:
parent
4a111033fa
commit
2c5da58d98
@ -9,7 +9,7 @@
|
||||
* Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
|
||||
* der an comBase beteiligten Autoren finden Sie in der Datei AUTHORS.
|
||||
*
|
||||
* $Id: client.c,v 1.11 2001/12/29 03:10:47 alex Exp $
|
||||
* $Id: client.c,v 1.12 2001/12/29 20:18:18 alex Exp $
|
||||
*
|
||||
* client.c: Management aller Clients
|
||||
*
|
||||
@ -21,6 +21,9 @@
|
||||
* Server gewesen, so existiert eine entsprechende CONNECTION-Struktur.
|
||||
*
|
||||
* $Log: client.c,v $
|
||||
* Revision 1.12 2001/12/29 20:18:18 alex
|
||||
* - neue Funktion Client_SetHostname().
|
||||
*
|
||||
* Revision 1.11 2001/12/29 03:10:47 alex
|
||||
* - Client-Modes implementiert; Loglevel mal wieder angepasst.
|
||||
*
|
||||
@ -146,11 +149,10 @@ GLOBAL CLIENT *Client_NewLocal( CONN_ID Idx, CHAR *Hostname )
|
||||
client = New_Client_Struct( );
|
||||
if( ! client ) return NULL;
|
||||
|
||||
/* Initgialisieren */
|
||||
/* Initialisieren */
|
||||
client->conn_id = Idx;
|
||||
client->introducer = This_Server;
|
||||
strncpy( client->host, Hostname, CLIENT_HOST_LEN );
|
||||
client->host[CLIENT_HOST_LEN] = '\0';
|
||||
Client_SetHostname( client, Hostname );
|
||||
|
||||
/* Verketten */
|
||||
client->next = My_Clients;
|
||||
@ -188,6 +190,16 @@ GLOBAL VOID Client_Destroy( CLIENT *Client )
|
||||
} /* Client_Destroy */
|
||||
|
||||
|
||||
GLOBAL VOID Client_SetHostname( CLIENT *Client, CHAR *Hostname )
|
||||
{
|
||||
/* Hostname eines Clients setzen */
|
||||
|
||||
assert( Client != NULL );
|
||||
strncpy( Client->host, Hostname, CLIENT_HOST_LEN );
|
||||
Client->host[CLIENT_HOST_LEN] = '\0';
|
||||
} /* Client_SetHostname */
|
||||
|
||||
|
||||
GLOBAL CLIENT *Client_GetFromConn( CONN_ID Idx )
|
||||
{
|
||||
/* Client-Struktur, die zur lokalen Verbindung Idx gehoert
|
||||
|
@ -9,11 +9,14 @@
|
||||
* Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
|
||||
* der an comBase beteiligten Autoren finden Sie in der Datei AUTHORS.
|
||||
*
|
||||
* $Id: client.h,v 1.8 2001/12/29 03:10:47 alex Exp $
|
||||
* $Id: client.h,v 1.9 2001/12/29 20:18:18 alex Exp $
|
||||
*
|
||||
* client.h: Konfiguration des ngircd (Header)
|
||||
*
|
||||
* $Log: client.h,v $
|
||||
* Revision 1.9 2001/12/29 20:18:18 alex
|
||||
* - neue Funktion Client_SetHostname().
|
||||
*
|
||||
* Revision 1.8 2001/12/29 03:10:47 alex
|
||||
* - Client-Modes implementiert; Loglevel mal wieder angepasst.
|
||||
*
|
||||
@ -95,6 +98,7 @@ GLOBAL VOID Client_Exit( VOID );
|
||||
|
||||
GLOBAL CLIENT *Client_NewLocal( CONN_ID Idx, CHAR *Hostname );
|
||||
GLOBAL VOID Client_Destroy( CLIENT *Client );
|
||||
GLOBAL VOID Client_SetHostname( CLIENT *Client, CHAR *Hostname );
|
||||
GLOBAL CLIENT *Client_GetFromConn( CONN_ID Idx );
|
||||
GLOBAL CHAR *Client_Name( CLIENT *Client );
|
||||
GLOBAL BOOLEAN Client_CheckNick( CLIENT *Client, CHAR *Nick );
|
||||
|
Loading…
Reference in New Issue
Block a user