transport: when connect to DNS SRV result fails try next one
commit0dfe0614bad49d01293185de1ae0eea868142a94
authorStefan Becker <stefan.becker@nokia.com>
Tue, 27 Apr 2010 16:26:23 +0000 (27 19:26 +0300)
committerStefan Becker <stefan.becker@nokia.com>
Tue, 27 Apr 2010 16:26:23 +0000 (27 19:26 +0300)
tree1ef518220a005bbd44c0a82c107787a0c16367e6
parent5b12c34e572307216cae9f24b401b7b6f5fc2501
transport: when connect to DNS SRV result fails try next one

Re-implemented the old current_service in a better way.

While we are trying to resolve DNS SRV records sipe_private->service_data is
non-NULL. If a DNS SRV record was resolved successfully but the connection
attempt failed then we check service_data and simply call resolve_next_service,
which will initiate a resolve attempt for the next service in the list.

service_data is set to NULL on a successful connection attempt, when a
connection is closed or the last service in the list has been tried.
src/core/sip-transport.c
src/core/sipe.c