discovery: Differentiate socket creation failure from other errors
authorOlivier Crête <olivier.crete@collabora.com>
Thu, 15 May 2014 21:48:30 +0000 (17:48 -0400)
committerOlivier Crête <olivier.crete@collabora.com>
Sat, 17 May 2014 04:22:37 +0000 (00:22 -0400)
commit747364e291b313ac535f251d361719e65e8df27e
tree6633281a6237f156b36d112b49950bd1d5b4dbd7
parent9f0dfa2dfee43a10d6cf3290f61f2a26100fbd57
discovery: Differentiate socket creation failure from other errors

If the socket can't be bound, then trying another port makes sense,
otherwise it doesn't.
agent/agent.c
agent/discovery.c
agent/discovery.h