Make the dummy server reply to registration messages.
Change the way sockets are handled.