Quick and dirty boost::asio code for a very, very basic telnet server.
Example of a pretty bad telnet server using boost::asio.