I want a way to get to the socket as early as possible to set TCP_NODELAY. This is one way of doing it.
Another way would be have a wocky_connector_set_tcp_nodelay(WockyConnector *, gboolean) like Twisted does. I'm not really fussed.
wocky-connector-test is basically the only test which actually touches sockets (the rest use fake streams which just pass strings around which is good) so I set TCP_NODELAY there too which dropped the running time of all the tests from 37s to 10s. Not bad.
You could argue that TCP_NODELAY should only be enabled for non-releases. Thoughts?
I added ifdefs for G_OS_UNIX.
Merged after review on IRC from Simon, thanks.