This code is needed to test the sockets