A sample of TCP server