The following program demonstrates how to create threaded TCP echo server.
This zip file contains the complete crate.