Reimplemented sending module to TCP sockets.