summaryrefslogtreecommitdiff
path: root/telnet_connection.cpp
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2011-01-04 03:17:45 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2011-01-04 03:17:45 +0100
commitf0db6a4e4e6b3059c6553b819ac8788b62486103 (patch)
treec449ef54f745c4a4994d815579c69c0790bc26b1 /telnet_connection.cpp
parent2b03b8ef2b5002f00960d17c8f1f634eb3a3a70f (diff)
Added Doxyfile and documentation comments in various places.
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();