Made bidirectional socket

Added tx/rx sockets to both client and server to allow bi-dir comm.