ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cvsroot/cf.schmorp.de/dclient/src/backend/communicator/client.cpp
Revision: 1.1
Committed: Sun Oct 24 22:24:49 2010 UTC (15 years, 11 months ago) by sf-pippijn
Branch: MAIN
CVS Tags: HEAD
Log Message:
added a command line client (no curses)

File Contents

# Content
1 #include "deliantra/client.h"
2
3 client::client (communicator &comm, interface::message_handler &msgh)
4 : comm (comm)
5 , msgh (msgh)
6 {
7 }
8
9 void
10 client::receive (std::string const &msg)
11 {
12 size_t space = msg.find_first_of (' ');
13 msgh.receive (msg.substr (0, space), msg.substr (space + 1));
14 }