Redefining the type of the socket