/[svn]/branches/newio/src/irc_res.c
ViewVC logotype

Diff of /branches/newio/src/irc_res.c

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

revision 2423 by michael, Wed Jul 17 20:29:02 2013 UTC revision 2424 by michael, Sun Jul 28 17:18:24 2013 UTC
# Line 251  start_resolver(void) Line 251  start_resolver(void)
251    /* If we need an IPv4 socket, and don't have one, open it. */    /* If we need an IPv4 socket, and don't have one, open it. */
252    if (need_v4 && !s_active(&res_socket_v4))    if (need_v4 && !s_active(&res_socket_v4))
253    {    {
254      int fd = os_socket(SOCK_DGRAM, AF_INET);      int fd = os_socket(SOCK_DGRAM, AF_INET, "Resolver UDPv4 socket");
255      if (fd >= 0)      if (fd >= 0)
256        socket_add(&res_socket_v4, res_readreply, NULL,        socket_add(&res_socket_v4, res_readreply, NULL,
257                   SS_DATAGRAM, SOCK_EVENT_READABLE, fd);                   SS_DATAGRAM, SOCK_EVENT_READABLE, fd);
# Line 260  start_resolver(void) Line 260  start_resolver(void)
260    /* If we need an IPv6 socket, and don't have one, open it. */    /* If we need an IPv6 socket, and don't have one, open it. */
261    if (need_v6 && !s_active(&res_socket_v6))    if (need_v6 && !s_active(&res_socket_v6))
262    {    {
263      int fd = os_socket(SOCK_DGRAM, AF_INET6);      int fd = os_socket(SOCK_DGRAM, AF_INET6, "Resolver UDPv6 socket");
264      if (fd >= 0)      if (fd >= 0)
265        socket_add(&res_socket_v6, res_readreply, NULL,        socket_add(&res_socket_v6, res_readreply, NULL,
266                   SS_DATAGRAM, SOCK_EVENT_READABLE, fd);                   SS_DATAGRAM, SOCK_EVENT_READABLE, fd);

Legend:
Removed from v.2423  
changed lines
  Added in v.2424

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