Some work on TCP server done.