ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cvsroot/deliantra/dclient/src/frontend/client/client.cpp
Revision: 1.2
Committed: Sun Oct 24 20:31:52 2010 UTC (16 years ago) by sf-pippijn
Branch: MAIN
Changes since 1.1: +1 -8 lines
Log Message:
use EV and plain sockets instead of asio

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     }