Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 11, 2005, 2:07:08 PM (18 years ago)
Author:
rennerc
Message:

added handshake

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/lib/network/synchronizeable.h

    r5997 r6043  
    2929
    3030    virtual void      writeBytes(const byte* data, int length);
    31     virtual int       readBytes(byte* data);
     31    virtual int       readBytes(byte* data, int maxLength, int& reciever);
    3232    virtual void      writeDebug() const;
    3333    virtual void      readDebug() const;
    34    
    35    
    36    
    37    
    38    
    39     void setIsServer(bool isServer);
    40     void setIsOutOfSync(bool outOfSync);
     34
     35    void setIsServer( bool isServer );
     36    void setIsOutOfSync( bool outOfSync );
    4137    bool isServer();
    4238    bool isOutOfSync();
     39    void setUniqueId( int id ){ uniqueID = id; }
     40    int  getUniqueID() const { return uniqueID; };
     41    void requestSync( int hostID ){ this->synchronizeRequests.push_back( hostID ); }
     42
     43    inline int getOwner(){ return owner; }
     44    inline void setOwner(int owner){ this->owner = owner; }
    4345
    4446  private:
    4547
    4648    int               uniqueID;
    47    
    48    
    49    
     49
     50
     51
    5052    //static std::vector<Synchronizeable*> classList;
    5153    int owner;
Note: See TracChangeset for help on using the changeset viewer.