/[imapfilter]/imapfilter/socket.c
ViewVC logotype

Diff of /imapfilter/socket.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.9 by lefcha, Fri Nov 9 17:32:43 2001 UTC revision 1.10 by lefcha, Fri Nov 9 23:38:25 2001 UTC
# Line 1  Line 1 
1  #include <string.h>  #include <string.h>
2  #include <errno.h>  #include <errno.h>
3  #include <unistd.h>  #include <unistd.h>
4    #include <sys/time.h>
5  #include <sys/types.h>  #include <sys/types.h>
6  #include <sys/socket.h>  #include <sys/socket.h>
7  #include <netinet/in.h>  #include <netinet/in.h>
# Line 42  int init_connection(char *serv, unsigned Line 43  int init_connection(char *serv, unsigned
43          error("imapfilter: create socket; %s\n", strerror(errno));          error("imapfilter: create socket; %s\n", strerror(errno));
44          return ERROR_NETWORK;          return ERROR_NETWORK;
45      }      }
   
46      if (!(he = gethostbyname(serv))) {      if (!(he = gethostbyname(serv))) {
47          error("imapfilter: get network host entry; %s\n", strerror(errno));          error("imapfilter: get network host entry; %s\n", strerror(errno));
48          close_connection();          close_connection();
# Line 59  int init_connection(char *serv, unsigned Line 59  int init_connection(char *serv, unsigned
59          close_connection();          close_connection();
60          return ERROR_NETWORK;          return ERROR_NETWORK;
61      }      }
   
62      log_info(LOG_SERVER, serv);      log_info(LOG_SERVER, serv);
63    
64  #ifdef SSL_TLS  #ifdef SSL_TLS
# Line 71  int init_connection(char *serv, unsigned Line 70  int init_connection(char *serv, unsigned
70  #endif  #endif
71    
72      info("Connected to %s.\n", serv);      info("Connected to %s.\n", serv);
73        
74      return 0;      return 0;
75  }  }
76    

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26