Add a delay between starting the acceptor thread and trying to initiate
connections. This is a temporary work-around that does seem to work reasonably
well for testing.
Use struct sockaddr_storage instead of struct sockaddr so that IPv6
addresses can be supported.