ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cvsroot/deliantra/dclient/src/frontend/client/client.cpp
Revision: 1.3
Committed: Sun Oct 24 22:24:49 2010 UTC (16 years ago) by sf-pippijn
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +0 -0 lines
State: FILE REMOVED
Log Message:
added a command line client (no curses)

File Contents

# User Rev Content
1 sf-pippijn 1.1 #include "dclient/client.h"
2    
3 sf-pippijn 1.2 client::client (communicator &comm, interface::message_handler &msgh)
4 sf-pippijn 1.1 : 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     }