Changeset 285 for code/branches/merger/src/network/Client.h
- Timestamp:
- Nov 27, 2007, 11:30:17 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/merger/src/network/Client.h
r278 r285 2 2 // C++ Interface: Client 3 3 // 4 // Description: 4 // Description: 5 5 // 6 6 // … … 16 16 #include <string> 17 17 18 #include " network/ClientConnection.h"19 #include " network/PacketManager.h"18 #include "ClientConnection.h" 19 #include "PacketManager.h" 20 20 21 21 … … 26 26 * This class implements all necessary function for the network communication 27 27 * It is the root class of the network module 28 * 28 * 29 29 */ 30 30 class Client : PacketDecoder{ … … 33 33 Client(std::string address, int port); 34 34 Client(const char *address, int port); 35 35 36 36 bool establishConnection(); 37 37 bool closeConnection(); 38 38 39 39 bool sendMouse(double x, double y); 40 40 bool sendKeyboard(char key_code); 41 41 42 42 bool addMouse(double x, double y); 43 43 bool addKeyboard(char key_code); 44 44 45 45 void update(); 46 46 47 47 private: 48 48 ClientConnection client_connection; 49 49 PacketGenerator pck_gen; 50 50 51 51 //const char *server_address; 52 52 //int port;
Note: See TracChangeset
for help on using the changeset viewer.