| Revision: | 1.2 |
| Committed: | Sun Oct 24 20:31:41 2010 UTC (15 years, 11 months ago) by sf-pippijn |
| Content type: | text/plain |
| Branch: | MAIN |
| CVS Tags: | HEAD |
| Changes since 1.1: | +0 -0 lines |
| State: | FILE REMOVED |
| Log Message: | use EV and plain sockets instead of asio |
| # | 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 | } |