ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/dclient/src/frontend/client/client.cpp
Revision: 1.1
Committed: Sun Oct 17 08:15:11 2010 UTC (16 years ago) by sf-pippijn
Branch: MAIN
Log Message:
initial import

File Contents

# User Rev Content
1 sf-pippijn 1.1 #include "dclient/client.h"
2    
3     client::client (interface::communicator &comm, interface::message_handler &msgh)
4     : comm (comm)
5     , msgh (msgh)
6     {
7     }
8    
9     void
10     client::ready ()
11     {
12     comm.receive ();
13     }
14    
15     void
16     client::receive (std::string const &msg)
17     {
18     size_t space = msg.find_first_of (' ');
19     msgh.receive (msg.substr (0, space), msg.substr (space + 1));
20     comm.receive ();
21     }