]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/ngircd/conn.h
Code cleanup: don't reset penalty time on DNS resolver result
[ngircd-alex.git] / src / ngircd / conn.h
index 96d1f33b144cc7151e7892ed12f13fefe33a82fc..e9b470bcf1327d08bdd3cf0598762ddc831a5326 100644 (file)
@@ -48,7 +48,7 @@ typedef long CONN_ID;
 #ifdef CONN_MODULE
 
 #include "defines.h"
-#include "resolve.h"
+#include "proc.h"
 #include "array.h"
 #include "tool.h"
 #include "ng_ipaddr.h"
@@ -69,7 +69,7 @@ typedef struct _Connection
 {
        int sock;                       /* Socket handle */
        ng_ipaddr_t addr;               /* Client address */
-       RES_STAT res_stat;              /* Status of resolver process */
+       PROC_STAT proc_stat;            /* Status of resolver process */
        char host[HOST_LEN];            /* Hostname */
        array rbuf;                     /* Read buffer */
        array wbuf;                     /* Write buffer */
@@ -113,6 +113,7 @@ GLOBAL void Conn_Close PARAMS(( CONN_ID Idx, const char *LogMsg, const char *Fwd
 
 GLOBAL void Conn_SyncServerStruct PARAMS(( void ));
 
+GLOBAL CONN_ID Conn_GetFromProc PARAMS((int fd));
 GLOBAL CLIENT* Conn_GetClient PARAMS((CONN_ID i));
 #ifdef SSL_SUPPORT
 GLOBAL bool Conn_GetCipherInfo PARAMS((CONN_ID Idx, char *buf, size_t len));