Added TCP support to sockets