Updated INetChannelInfo and INetChannel interfaces

This commit is contained in:
Scott Ehlert 2008-11-12 16:30:21 -06:00
parent 8071e95e35
commit 5ed18462cf
2 changed files with 6 additions and 1 deletions

View File

@ -71,7 +71,6 @@ public:
virtual void SetFileTransmissionMode(bool bBackgroundMode) = 0;
virtual void SetCompressionMode( bool bUseCompression ) = 0;
virtual unsigned int RequestFile(const char *filename) = 0;
virtual float GetTimeSinceLastReceived( void ) const = 0; // get time since last received packet in seconds
virtual void SetMaxBufferSize(bool bReliable, int nBytes, bool bVoice = false ) = 0;
@ -83,6 +82,11 @@ public:
// Max # of payload bytes before we must split/fragment the packet
virtual void SetMaxRoutablePayloadSize( int nSplitSize ) = 0;
virtual int GetMaxRoutablePayloadSize() = 0;
virtual bool SetActiveChannel( INetChannel *msg ) = 0;
virtual void AttachSplitPlayer( int player, INetChannel *msg ) = 0;
virtual void DetachSplitPlayer( int player ) = 0;
virtual bool IsRemoteDisconnected() const = 0;
};

View File

@ -60,6 +60,7 @@ public:
virtual float GetAvgData( int flow ) const = 0; // data flow in bytes/sec
virtual float GetAvgPackets( int flow ) const = 0; // avg packets/sec
virtual int GetTotalData( int flow ) const = 0; // total flow in/out in bytes
virtual int GetTotalPackets( int flow ) const = 0;
virtual int GetSequenceNr( int flow ) const = 0; // last send seq number
virtual bool IsValidPacket( int flow, int frame_number ) const = 0; // true if packet was not lost/dropped/chocked/flushed
virtual float GetPacketTime( int flow, int frame_number ) const = 0; // time when packet was send