Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5550 in orxonox.OLD for branches/network/src/lib


Ignore:
Timestamp:
Nov 11, 2005, 8:05:50 PM (19 years ago)
Author:
snellen
Message:

synchronizeable finished, connection_monitor.h updated

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

Legend:

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

    r5547 r5550  
    1212   main-programmer: Silvan Nellen
    1313   co-programmer: ...
     14*/
    1415
    1516#include "connection_monitor.h"
     
    3031 }
    3132
    32 */
     33
  • branches/network/src/lib/network/connection_monitor.h

    r5547 r5550  
    22 * @file connection_monitor.h
    33    \brief provides information about the quality of a connection.
     4 */
    45
     6#ifndef _CONNECTION_MONITOR_H
     7#define _CONNECTION_MONITOR_H
    58
     9#include "netdefs.h"
     10//#include "networkstream.h"
    611
    712class ConnectionMonitor
     
    1015                        ConnectionMonitor();
    1116                        ~ConnectionMonitor();
    12                         NetworkStream& networkStream;
    1317
    1418        private:
    1519
    16  NetworkStream&         networkStream;
     20    void                processPacket();
     21    void                displayStatistic();
     22
     23  //NetworkStream&      networkStream;
     24
     25    unsigned int        totalReceivedPackets;
     26    unsigned int        totalLostPackets;
     27    unsigned int        packetSize;
     28
     29    unsigned int        currentDatarate;
     30    unsigned int        timeForLastFewPackets;
     31
    1732
    1833};
    19 */
     34
     35#endif
     36
  • branches/network/src/lib/network/synchronizeable.h

    r5548 r5550  
    11/*!
    22 * @file connection_monitor.h
    3     \brief provides information about the quality of a connection.
     3    \brief interface for all classes that have to be synchronized
    44 */
    55
     
    1010#include "netdefs.h"
    1111
    12 
    1312class Synchronizeable : public BaseObject
    1413{
     
    1817                   ~Synchronizeable();
    1918
    20  virtual byte*    writeByteStream();
     19 virtual byte*     writeByteStream();
    2120 virtual void      readByteStream(byte* data);
    2221 virtual void      writeDebug();
Note: See TracChangeset for help on using the changeset viewer.