Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5581 in orxonox.OLD for branches/network/src


Ignore:
Timestamp:
Nov 16, 2005, 1:19:27 PM (19 years ago)
Author:
snellen
Message:

synchronizeable updated, connection_monitor.h and connection_monitor.cc updated

Location:
branches/network/src/lib/network
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/lib/network/connection_monitor.cc

    r5564 r5581  
    2222 {
    2323
     24         totalReceivedPackets=0;
     25         totalLostPackets=0;
     26         //packetSize=?;
     27
     28         currentPacketID=0;
     29         currentDatarate=0;
     30         timeForLastFewPackets=0;
    2431
    2532 }
     
    3542
    3643
     44
     45 void ConnectionMonitor::processPacket(byte* packet)
     46 {
     47
     48
     49
     50 }
     51
     52
     53 void ConnectionMonitor::displayStatistic()
     54 {
     55
     56
     57
     58
     59
     60 }
     61
  • branches/network/src/lib/network/connection_monitor.h

    r5550 r5581  
    77#define _CONNECTION_MONITOR_H
    88
     9#include "base_object.h"
    910#include "netdefs.h"
    10 //#include "networkstream.h"
    1111
    12 class ConnectionMonitor
     12class ConnectionMonitor : virtual public BaseObject
    1313{
    1414        public:
     
    1616                        ~ConnectionMonitor();
    1717
     18    void                processPacket(byte* packet);
     19
     20
    1821        private:
    1922
    20     void                processPacket();
     23
    2124    void                displayStatistic();
    22 
    23   //NetworkStream&      networkStream;
    2425
    2526    unsigned int        totalReceivedPackets;
     
    2728    unsigned int        packetSize;
    2829
     30    unsigned int        currentPacketID;
    2931    unsigned int        currentDatarate;
    3032    unsigned int        timeForLastFewPackets;
    31 
    3233
    3334};
  • branches/network/src/lib/network/synchronizeable.h

    r5564 r5581  
    1010#include "netdefs.h"
    1111
    12 class Synchronizeable : public BaseObject
     12class Synchronizeable : virtual public BaseObject
    1313{
    1414        public:
Note: See TracChangeset for help on using the changeset viewer.