[Gcblue-commits] gcb_wx/include/network tcConnectionData.h,1.4,1.5 tcMultiplayerInterface.h,1.12,1.1
Status: Alpha
Brought to you by:
ddcforge
|
From: Dewitt C. <ddc...@us...> - 2004-05-02 16:22:53
|
Update of /cvsroot/gcblue/gcb_wx/include/network In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11419/include/network Modified Files: tcConnectionData.h tcMultiplayerInterface.h tcUpdateMessageHandler.h Log Message: Index: tcUpdateMessageHandler.h =================================================================== RCS file: /cvsroot/gcblue/gcb_wx/include/network/tcUpdateMessageHandler.h,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** tcUpdateMessageHandler.h 1 May 2004 21:49:23 -0000 1.4 --- tcUpdateMessageHandler.h 2 May 2004 16:22:44 -0000 1.5 *************** *** 73,79 **** void HandleCommandUpdate(tcCommandStream& stream, int connectionId); ///< command update void HandleCreate(tcCreateStream& stream); ! void HandleCreateRequest(tcStream& stream); void HandleDestroy(tcStream& stream); ! void HandleUpdate(tcUpdateStream& stream); --- 73,79 ---- void HandleCommandUpdate(tcCommandStream& stream, int connectionId); ///< command update void HandleCreate(tcCreateStream& stream); ! void HandleCreateRequest(tcStream& stream, int connectionId); void HandleDestroy(tcStream& stream); ! void HandleUpdate(tcUpdateStream& stream, int connectionId); Index: tcMultiplayerInterface.h =================================================================== RCS file: /cvsroot/gcblue/gcb_wx/include/network/tcMultiplayerInterface.h,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** tcMultiplayerInterface.h 1 May 2004 21:49:23 -0000 1.12 --- tcMultiplayerInterface.h 2 May 2004 16:22:44 -0000 1.13 *************** *** 52,55 **** --- 52,56 ---- std::map<long, double> lastUpdate; ///< map of (obj id, update time) pairs + void EraseEntry(long id); bool GetLastUpdate(long id, double& updateTime); void SetUpdate(long id, double updateTime); Index: tcConnectionData.h =================================================================== RCS file: /cvsroot/gcblue/gcb_wx/include/network/tcConnectionData.h,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** tcConnectionData.h 4 Apr 2004 20:49:42 -0000 1.4 --- tcConnectionData.h 2 May 2004 16:22:44 -0000 1.5 *************** *** 55,60 **** std::queue<unsigned int> writeQueueUDP; ///< fifo of message indices waiting for UDP transmit std::vector<unsigned int> ack; ///< vector of transmitted messages waiting for ack ! void ReadNextMessageTCP(); void ReadNextMessageUDP(unsigned int messageSize, unsigned char *buffer); --- 55,63 ---- std::queue<unsigned int> writeQueueUDP; ///< fifo of message indices waiting for UDP transmit std::vector<unsigned int> ack; ///< vector of transmitted messages waiting for ack + unsigned long readCount; ///< number of bytes read from this connection + unsigned long writeCount; ///< number of bytes written to this connection ! unsigned long GetReadCount() const; ! unsigned long GetWriteCount() const; void ReadNextMessageTCP(); void ReadNextMessageUDP(unsigned int messageSize, unsigned char *buffer); |