Thread the looping of the receiver

TCP should work.