summaryrefslogtreecommitdiff
path: root/telnet_connection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'telnet_connection.cpp')
-rw-r--r--telnet_connection.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/telnet_connection.cpp b/telnet_connection.cpp
index 2cc723e..8d6675d 100644
--- a/telnet_connection.cpp
+++ b/telnet_connection.cpp
@@ -51,6 +51,9 @@ void telnet::Connection::handle_read(const boost::system::error_code& error, siz
start();
}
+/** Parse a given line and return a vector with its arguments.
+ * Arguments which are surrounded by "quotes" are interpreted as a single argument.
+ */
std::vector<std::string> telnet::Connection::parse_args(std::string& line) {
std::string::const_iterator begin = line.begin();
std::string::const_iterator end = line.end();