First draft of TCP server