summaryrefslogtreecommitdiff
path: root/telnetd.h
blob: e6126f1e4822fa37446c95f6fcd71ddd5d6832df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef TELNETD_H
#define TELNETD_H

#include "telnet_connection.h"

namespace telnet {
	class Server {
		public:
			Server(boost::asio::io_service& io_service, const tcp::endpoint& endpoint);

		private:
			void start_accept();
			void handle_accept(Connection::p new_connection, const boost::system::error_code& error);

			tcp::acceptor acceptor_;
	};
};

#endif