Added code to accept, receive and send to single connection