Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 9347 was 9347, checked in by bensch, 18 years ago

orxonox/proxy: merged the proxy.old back again, and it seems to work.

Merged with command
svn merge -r9247:HEAD https://svn.orxonox.net/orxonox/branches/proxy.old .

no conflicts

File size: 947 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#include "ip.h"
15
16class SynchronizeableIP : public SynchronizeableVar {
17
18  public:
19    SynchronizeableIP( IP *ptrIn, IP * ptrOut, std::string name, int permission = PERMISSION_MASTER_SERVER, int priority = 0 );
20    virtual ~SynchronizeableIP();
21
22    virtual int writeToBuf( byte * buf, int maxLength );
23    virtual int readFromBuf( byte * buf, int maxLength );
24
25    /**
26     * check if writeToBuf will return the same size every time
27     * @return true if same size every time
28     */
29    virtual bool hasStaticSize(){ return true; }
30
31    virtual void debug();
32
33
34  private:
35    IP * vPtrIn;       //!< pointer to data (read)
36    IP * vPtrOut;      //!< pointer to data (write)
37
38};
39
40#endif /* _PROTO_CLASS_H */
Note: See TracBrowser for help on using the repository browser.