/[cvs]/eggdrop1.8/src/eggdrop.h
ViewVC logotype

Diff of /eggdrop1.8/src/eggdrop.h

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

revision 1.2 by pseudo, Tue Jul 27 21:49:41 2010 UTC revision 1.3 by pseudo, Thu Aug 5 18:12:05 2010 UTC
# Line 335  typedef u_32bit_t IP; Line 335  typedef u_32bit_t IP;
335  typedef intptr_t (*Function) ();  typedef intptr_t (*Function) ();
336  typedef int (*IntFunc) ();  typedef int (*IntFunc) ();
337    
338    #ifdef IPV6
339    #include "compat/in6.h"
340    #endif
341    
342    #include <sys/socket.h>
343    #include <netinet/in.h>
344    
345    typedef struct {
346      int family;
347      socklen_t addrlen;
348      union {
349        struct sockaddr sa;
350        struct sockaddr_in s4;
351    #ifdef IPV6
352        struct sockaddr_in6 s6;
353    #endif
354      } addr;
355    } sockname_t;
356    
357  /* Public structure for the listening port map */  /* Public structure for the listening port map */
358  struct portmap {  struct portmap {
359    int realport;    int realport;
# Line 362  struct userrec; Line 381  struct userrec;
381  struct dcc_t {  struct dcc_t {
382    long sock;                    /* This should be a long to keep 64-bit machines sane. */    long sock;                    /* This should be a long to keep 64-bit machines sane. */
383    IP addr;                      /* IP address in host network byte order. */    IP addr;                      /* IP address in host network byte order. */
384      sockname_t sockname;      /* IPv4/IPv6 sockaddr placeholder */
385    unsigned int port;    unsigned int port;
386    struct userrec *user;    struct userrec *user;
387    char nick[NICKLEN];    char nick[NICKLEN];
# Line 471  struct dns_info { Line 491  struct dns_info {
491    char *cbuf;                   /* temporary buffer. Memory will be free'd    char *cbuf;                   /* temporary buffer. Memory will be free'd
492                                   * as soon as dns_info is free'd           */                                   * as soon as dns_info is free'd           */
493    char *cptr;                   /* temporary pointer                       */    char *cptr;                   /* temporary pointer                       */
494    IP ip;                        /* IP address                              */    sockname_t *ip;       /* pointer to sockname with ipv4/6 address */
495    int ibuf;                     /* temporary buffer for one integer        */    int ibuf;                     /* temporary buffer for one integer        */
496    char dns_type;                /* lookup type, e.g. RES_HOSTBYIP          */    char dns_type;                /* lookup type, e.g. RES_HOSTBYIP          */
497    struct dcc_table *type;       /* type of the dcc table we are making the    struct dcc_table *type;       /* type of the dcc table we are making the

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23