#include "portab.h"
-static char UNUSED id[] = "$Id: conn-func.c,v 1.3 2003/12/26 15:55:07 alex Exp $";
+static char UNUSED id[] = "$Id: conn-func.c,v 1.4 2005/03/19 18:43:48 fw Exp $";
#include "imp.h"
#include <assert.h>
#include "conn-func.h"
-GLOBAL VOID
+GLOBAL void
Conn_UpdateIdle( CONN_ID Idx )
{
/* Idle-Timer zuruecksetzen */
} /* Conn_LastPing */
-GLOBAL VOID
+GLOBAL void
Conn_SetPenalty( CONN_ID Idx, time_t Seconds )
{
/* Penalty-Delay fuer eine Verbindung (in Sekunden) setzen;
} /* Conn_SetPenalty */
-GLOBAL VOID
+GLOBAL void
Conn_ResetPenalty( CONN_ID Idx )
{
assert( Idx > NONE );
} /* Conn_ResetPenalty */
-GLOBAL VOID
-Conn_ClearFlags( VOID )
+GLOBAL void
+Conn_ClearFlags( void )
{
/* Alle Connection auf "nicht-markiert" setzen */
} /* Conn_ClearFlags */
-GLOBAL INT
+GLOBAL int
Conn_Flag( CONN_ID Idx )
{
- /* Ist eine Connection markiert (TRUE) oder nicht? */
+ /* Ist eine Connection markiert (true) oder nicht? */
assert( Idx > NONE );
return My_Connections[Idx].flag;
} /* Conn_Flag */
-GLOBAL VOID
-Conn_SetFlag( CONN_ID Idx, INT Flag )
+GLOBAL void
+Conn_SetFlag( CONN_ID Idx, int Flag )
{
/* Connection markieren */
GLOBAL CONN_ID
-Conn_First( VOID )
+Conn_First( void )
{
/* Connection-Struktur der ersten Verbindung liefern;
* Ist keine Verbindung vorhanden, wird NONE geliefert. */
} /* Conn_Next */
-GLOBAL VOID
-Conn_SetOption( CONN_ID Idx, INT Option )
+GLOBAL void
+Conn_SetOption( CONN_ID Idx, int Option )
{
/* Option fuer Verbindung setzen.
* Initial sind alle Optionen _nicht_ gesetzt. */
} /* Conn_SetOption */
-GLOBAL VOID
-Conn_UnsetOption( CONN_ID Idx, INT Option )
+GLOBAL void
+Conn_UnsetOption( CONN_ID Idx, int Option )
{
/* Option fuer Verbindung loeschen */
} /* Conn_UnsetOption */
-GLOBAL INT
+GLOBAL int
Conn_Options( CONN_ID Idx )
{
assert( Idx > NONE );
} /* Conn_Uptime */
-GLOBAL INT
+GLOBAL int
Conn_SendQ( CONN_ID Idx )
{
/* Laenge der Daten im Schreibbuffer liefern */
} /* Conn_SendQ */
-GLOBAL LONG
+GLOBAL long
Conn_SendMsg( CONN_ID Idx )
{
/* Anzahl gesendeter Nachrichten liefern */
} /* Conn_SendMsg */
-GLOBAL LONG
+GLOBAL long
Conn_SendBytes( CONN_ID Idx )
{
/* Anzahl gesendeter Bytes (unkomprimiert) liefern */
} /* Conn_SendBytes */
-GLOBAL INT
+GLOBAL int
Conn_RecvQ( CONN_ID Idx )
{
/* Laenge der Daten im Lesebuffer liefern */
} /* Conn_RecvQ */
-GLOBAL LONG
+GLOBAL long
Conn_RecvMsg( CONN_ID Idx )
{
/* Anzahl empfangener Nachrichten liefern */
} /* Conn_RecvMsg */
-GLOBAL LONG
+GLOBAL long
Conn_RecvBytes( CONN_ID Idx )
{
/* Anzahl empfangener Bytes (unkomprimiert) liefern */
} /* Conn_RecvBytes */
-GLOBAL VOID
-Conn_ResetWCounter( VOID )
+GLOBAL void
+Conn_ResetWCounter( void )
{
WCounter = 0;
} /* Conn_ResetWCounter */
-GLOBAL LONG
-Conn_WCounter( VOID )
+GLOBAL long
+Conn_WCounter( void )
{
return WCounter;
} /* Conn_WCounter */