Start hashing out the socket interface.