loudmouth/lm-old-socket.c
changeset 587 7c793095138e
parent 585 bccdb423a8e9
child 588 d4468955feb1
equal deleted inserted replaced
586:397c716572b4 587:7c793095138e
   468 
   468 
   469     if (connect_data->io_channel != NULL) {
   469     if (connect_data->io_channel != NULL) {
   470         socket_close_io_channel (connect_data->io_channel);
   470         socket_close_io_channel (connect_data->io_channel);
   471     }
   471     }
   472 
   472 
   473     if (connect_data->current_addr == NULL) {
   473     if (connect_data->current_addr == NULL) { /*Ran Out Of Addresses*/
   474         if (socket->connect_func) {
   474         if (socket->connect_func) {
   475             (socket->connect_func) (socket, FALSE, socket->user_data);
   475             (socket->connect_func) (socket, FALSE, socket->user_data);
   476         }
   476         }
   477 
   477 
   478         /* if the user callback called connection_close(), this is already freed */
   478         /* if the user callback called connection_close(), this is already freed */
   782     }
   782     }
   783 
   783 
   784     socket->connect_data->current_addr =
   784     socket->connect_data->current_addr =
   785         lm_resolver_results_get_next (resolver);
   785         lm_resolver_results_get_next (resolver);
   786 
   786 
   787     socket_do_connect (socket->connect_data);
   787     if (socket->connect_data->current_addr) {
       
   788         socket_do_connect (socket->connect_data);
       
   789     } else { /* FIXME: IPv6 Support? */
       
   790         g_log (LM_LOG_DOMAIN,G_LOG_LEVEL_ERROR,
       
   791                "Unable to locate server available over IPv4.\n");
       
   792     };
       
   793 
       
   794     /* FIXME: What do we do here?  How to make the mainloop exit with an 
       
   795        error, while having no ref to said mainloop */
   788 }
   796 }
   789 
   797 
   790 /* FIXME: Need to have a way to only get srv reply and then decide if the
   798 /* FIXME: Need to have a way to only get srv reply and then decide if the
   791  *        resolver should continue to look the host up.
   799  *        resolver should continue to look the host up.
   792  *
   800  *