3 Commits

Author SHA1 Message Date
Daniel O'Connor
626ddee8da Change monitor.socket and mdp.socket prefs to be a suffix which is applied to the instance directory (normal) or org.servalproject.servald (abstract) 2012-06-24 14:26:43 +09:30
Daniel O'Connor
719d1fe72c Add option to set SO_REUSEADDR to socket_bind() and use it. 2012-06-24 14:25:58 +09:30
Daniel O'Connor
c4f19f8a82 Factor out code to fill in a sockaddr_un to a single function and remove overlay_mdp.c's duplicate socket handling (which was incomplete).
All platforms except Android use normal sockets (although this is easy to change and the choice is keyed off a single define).
This gives consistent handling to unix domain sockets which were previously a mishmash where some were always normal, some always abstract and some chose (but in different ways). It also gives consistent error checking.

Doesn't pass tests yet though.
2012-06-24 00:38:47 +09:30