/[svn]/ircd-hybrid-8/src/listener.c
ViewVC logotype

Diff of /ircd-hybrid-8/src/listener.c

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

revision 1241 by michael, Sun Sep 18 09:02:38 2011 UTC revision 1242 by michael, Fri Sep 30 08:17:50 2011 UTC
# Line 36  Line 36 
36  #include "s_conf.h"  #include "s_conf.h"
37  #include "send.h"  #include "send.h"
38  #include "memory.h"  #include "memory.h"
 #ifdef HAVE_LIBCRYPTO  
 #include <openssl/bio.h>  
 #endif  
   
39    
40  static PF accept_connection;  static PF accept_connection;
41    
# Line 68  free_listener(struct Listener *listener) Line 64  free_listener(struct Listener *listener)
64    
65  /*  /*
66   * get_listener_name - return displayable listener name and port   * get_listener_name - return displayable listener name and port
67   * returns "host.foo.org:6667" for a given listener   * returns "host.foo.org/6667" for a given listener
68   */   */
69  const char *  const char *
70  get_listener_name(const struct Listener *const listener)  get_listener_name(const struct Listener *const listener)
# Line 153  inetport(struct Listener *listener) Line 149  inetport(struct Listener *listener)
149      return 0;      return 0;
150    }    }
151    
   /*  
    * XXX - we don't want to do all this crap for a listener  
    * set_sock_opts(listener);  
    */  
152    if (setsockopt(listener->fd.fd, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt)))    if (setsockopt(listener->fd.fd, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt)))
153    {    {
154      report_error(L_ALL, "setting SO_REUSEADDR for listener %s:%s",      report_error(L_ALL, "setting SO_REUSEADDR for listener %s:%s",

Legend:
Removed from v.1241  
changed lines
  Added in v.1242

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28