diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2010-12-31 01:25:38 +0100 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2010-12-31 01:25:38 +0100 |
commit | 0e7f2cef26bde782a5758b5e9a3dfe20f745df8f (patch) | |
tree | 736b53010218fba8134a1660c7a3ad5ef998f01c /main.cpp | |
parent | b439fcd1916cef267bde32f3424d8311519d3d16 (diff) |
Added an echoing telnet server as a base for a telnet command interface.
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -3,6 +3,7 @@ #include "decoder.h" #include "encoder.h" #include "httpd.h" +#include "telnetd.h" #include <iostream> #include <vector> @@ -19,6 +20,7 @@ int main(int argc, char **argv) { boost::asio::io_service io_service; HTTP::Server httpd(io_service, tcp::endpoint(tcp::v6(), config::vm["audist.httpd_port"].as<int>())); + telnet::Server telnetd(io_service, tcp::endpoint(tcp::v6(), config::vm["audist.telnetd_port"].as<int>())); std::size_t num_threads = config::vm["audist.threads"].as<std::size_t>(); std::vector<boost::shared_ptr<boost::thread> > threads; |