prep the implementation for handling both types of sockets