first version of TCPReceiver