]> arthur.barton.de Git - ngircd-alex.git/commitdiff
- neue Funktion Conn_LastPing().
authorAlexander Barton <alex@barton.de>
Mon, 11 Feb 2002 01:00:50 +0000 (01:00 +0000)
committerAlexander Barton <alex@barton.de>
Mon, 11 Feb 2002 01:00:50 +0000 (01:00 +0000)
src/ngircd/conn.c
src/ngircd/conn.h

index 32598a7779975bcd4d5dd7c3bae65bab2397dc89..710abac70f849a2c0b58c36c3a72bcf617bc12b6 100644 (file)
@@ -9,11 +9,14 @@
  * Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
  * der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
  *
- * $Id: conn.c,v 1.35 2002/01/18 11:12:11 alex Exp $
+ * $Id: conn.c,v 1.36 2002/02/11 01:00:50 alex Exp $
  *
  * connect.h: Verwaltung aller Netz-Verbindungen ("connections")
  *
  * $Log: conn.c,v $
+ * Revision 1.36  2002/02/11 01:00:50  alex
+ * - neue Funktion Conn_LastPing().
+ *
  * Revision 1.35  2002/01/18 11:12:11  alex
  * - der Sniffer wird nun nur noch aktiviert, wenn auf Kommandozeile angegeben.
  *
@@ -570,6 +573,15 @@ GLOBAL INT32 Conn_GetIdle( CONN_ID Idx )
 } /* Conn_GetIdle */
 
 
+GLOBAL INT32 Conn_LastPing( CONN_ID Idx )
+{
+       /* Zeitpunkt des letzten PING liefern */
+
+       assert( Idx >= 0 );
+       return My_Connections[Idx].lastping;
+} /* Conn_LastPing */
+
+
 LOCAL BOOLEAN Try_Write( CONN_ID Idx )
 {
        /* Versuchen, Daten aus dem Schreib-Puffer in den
index 8344b29159ef2adb36230c1afd8eb66660d89b46..2c317ef91ab1486c944720aad1e514126fdc1700 100644 (file)
@@ -9,11 +9,14 @@
  * Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
  * der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
  *
- * $Id: conn.h,v 1.10 2002/01/06 15:18:15 alex Exp $
+ * $Id: conn.h,v 1.11 2002/02/11 01:00:50 alex Exp $
  *
  * conn.h: Verwaltung aller Netz-Verbindungen ("connections") (Header)
  *
  * $Log: conn.h,v $
+ * Revision 1.11  2002/02/11 01:00:50  alex
+ * - neue Funktion Conn_LastPing().
+ *
  * Revision 1.10  2002/01/06 15:18:15  alex
  * - Loglevel und Meldungen nochmals geaendert. Level passen nun besser.
  *
@@ -75,6 +78,7 @@ GLOBAL VOID Conn_Close( CONN_ID Idx, CHAR *LogMsg, CHAR *FwdMsg, BOOLEAN InformC
 
 GLOBAL VOID Conn_UpdateIdle( CONN_ID Idx );
 GLOBAL INT32 Conn_GetIdle( CONN_ID Idx );
+GLOBAL INT32 Conn_LastPing( CONN_ID Idx );
 
 
 #endif