Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/proxy/src/lib/network/synchronizeable_var/synchronizeable_ip.h @ 9308

Last change on this file since 9308 was 9293, checked in by patrick, 18 years ago

introducing new synchronizeable object ip-address

File size: 959 bytes
Line 
1/*!
2 * @file synchronizeable_ip.h
3 * @brief Definition of SynchronizeableIP
4*/
5
6#include "synchronizeable_var/synchronizeable_var.h"
7
8#ifndef _SYNCHRONIZEABLE_IP_H
9#define _SYNCHRONIZEABLE_IP_H
10
11#include "vector.h"
12
13#include "netdefs.h"
14
15class SynchronizeableIP : public SynchronizeableVar {
16
17  public:
18    SynchronizeableIP( IPaddress *ptrIn, IPaddress * ptrOut, std::string name, int permission = PERMISSION_MASTER_SERVER, int priority = 0 );
19    virtual ~SynchronizeableIP();
20
21    virtual int writeToBuf( byte * buf, int maxLength );
22    virtual int readFromBuf( byte * buf, int maxLength );
23
24    /**
25     * check if writeToBuf will return the same size every time
26     * @return true if same size every time
27     */
28    virtual bool hasStaticSize(){ return true; }
29
30    virtual void debug();
31
32
33  private:
34    IPaddress * vPtrIn;       //!< pointer to data (read)
35    IPaddress * vPtrOut;      //!< pointer to data (write)
36
37};
38
39#endif /* _PROTO_CLASS_H */
Note: See TracBrowser for help on using the repository browser.