summaryrefslogtreecommitdiff
path: root/telnet_connection.h
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2011-01-01 21:04:17 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2011-01-01 21:04:17 +0100
commit14500d43760661ffc3ffb67d929088c27fe46c64 (patch)
tree75d9471a61b00eb56b7ee75b3a785a392edb0dad /telnet_connection.h
parent0e7f2cef26bde782a5758b5e9a3dfe20f745df8f (diff)
Implemented a simple 'ls' command for the telnet server.
Diffstat (limited to 'telnet_connection.h')
-rw-r--r--telnet_connection.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/telnet_connection.h b/telnet_connection.h
index 8ea3cad..68d652e 100644
--- a/telnet_connection.h
+++ b/telnet_connection.h
@@ -4,6 +4,9 @@
#include <boost/asio.hpp>
#include <boost/enable_shared_from_this.hpp>
+#include <vector>
+#include <string>
+
using boost::asio::ip::tcp;
namespace telnet {
@@ -13,6 +16,7 @@ namespace telnet {
private:
Connection(boost::asio::io_service& io_service);
void handle_read(const boost::system::error_code& error, size_t bytes_transferred);
+ std::vector<std::string> parse_args(std::string& line);
tcp::socket socket;
boost::asio::streambuf buf;