Changeset 2997 for code/branches/ggz/src/orxonox/GGZClient.h
- Timestamp:
- May 20, 2009, 4:18:02 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ggz/src/orxonox/GGZClient.h
r2889 r2997 3 3 4 4 #include "OrxonoxPrereqs.h" 5 #include "objects/ FDWatcher.h"5 #include "objects/Tickable.h" 6 6 7 7 #include <ggzmod.h> 8 #include <boost/asio.hpp> 8 9 9 10 namespace orxonox 10 11 { 11 class _OrxonoxExport GGZClient 12 class _OrxonoxExport GGZClient : public Tickable 12 13 { 13 14 public: … … 16 17 17 18 static GGZClient& getInstance(); 19 virtual void tick(const float dt); 18 20 19 21 private: … … 21 23 22 24 bool active; 23 GGZMod *ggzmod; 24 FDWatcher sockets; 25 GGZMod * ggzmod; 26 boost::asio::io_service io; 27 boost::asio::ip::tcp::socket ggzSocket; 28 boost::asio::ip::tcp::socket gameSocket; 25 29 26 30 void initGGZ(); 27 31 void deinitGGZ(); 28 static void handleGame(int fd);29 static void handleGGZ(int fd);32 void handleGame(const boost::system::error_code& e); 33 void handleGGZ(const boost::system::error_code& e); 30 34 static void handleGGZModServer(GGZMod * ggzmod, GGZModEvent e, 31 35 const void *data);
Note: See TracChangeset
for help on using the changeset viewer.