Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 20, 2009, 4:18:02 PM (16 years ago)
Author:
adrfried
Message:

some asio functionality

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/ggz/src/orxonox/GGZClient.h

    r2889 r2997  
    33
    44#include "OrxonoxPrereqs.h"
    5 #include "objects/FDWatcher.h"
     5#include "objects/Tickable.h"
    66
    77#include <ggzmod.h>
     8#include <boost/asio.hpp>
    89
    910namespace orxonox
    1011{
    11     class _OrxonoxExport GGZClient
     12    class _OrxonoxExport GGZClient : public Tickable
    1213    {
    1314        public:
     
    1617
    1718            static GGZClient& getInstance();
     19            virtual void tick(const float dt);
    1820
    1921        private:
     
    2123
    2224            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;
    2529
    2630            void initGGZ();
    2731            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);
    3034            static void handleGGZModServer(GGZMod * ggzmod, GGZModEvent e,
    3135                    const void *data);
Note: See TracChangeset for help on using the changeset viewer.