ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cvsroot/cf.schmorp.de/dclient/include/deliantra/interface/communicator.h
Revision: 1.1
Committed: Sun Oct 17 08:14:51 2010 UTC (16 years ago) by sf-pippijn
Content type: text/plain
Branch: MAIN
Log Message:
initial import

File Contents

# User Rev Content
1 sf-pippijn 1.1 #pragma once
2    
3     #include <string>
4    
5     namespace interface
6     {
7     /**
8     * Classes implementing this interface will handle the low level sending and
9     * receiving commands.
10     */
11     struct communicator
12     {
13     /// Initiate receiving the next command.
14     virtual void receive () = 0;
15     /// Send command to the server.
16     virtual void send (std::string const &command) = 0;
17     };
18     }