diff --git a/public/inetchannel.h b/public/inetchannel.h index f8784826..375e8e39 100644 --- a/public/inetchannel.h +++ b/public/inetchannel.h @@ -16,6 +16,7 @@ #include "tier1/netadr.h" class IDemoRecorder; +class IInstantReplayIntercept; class INetMessage; class INetChannelHandler; class INetChannelInfo; @@ -55,12 +56,14 @@ public: virtual bool UnregisterMessage(INetMessageBinder *msg) = 0; virtual void SetTimeout(float seconds, bool bForceExact = false) = 0; virtual void SetDemoRecorder(IDemoRecorder *recorder) = 0; + virtual void SetInstantReplayIntercept(IInstantReplayIntercept *intercept) = 0; virtual void Reset( void ) = 0; virtual void Clear( void ) = 0; virtual void Shutdown(/* ENetworkDisconnectionReason */ int reason) = 0; virtual bool ProcessDemoPacket( struct netpacket_s* packet ) = 0; + virtual bool InsertReplayMessage( INetMessage *msg ) = 0; virtual void ProcessPacket( struct netpacket_s* packet, bool bHasHeader ) = 0; virtual bool SendNetMsg(INetMessage &msg, bool bForceReliable = false, bool bVoice = false ) = 0; @@ -115,6 +118,9 @@ public: virtual void SetUsesMaxRoutablePlayload(bool useMax) = 0; virtual bool WasLastMessageReliable() const = 0; + + virtual void SetPendingDisconnect( int reason ) = 0; + virtual int GetPendingDisconnect() const = 0; }; diff --git a/public/inetchannelinfo.h b/public/inetchannelinfo.h index 815c494f..8e8308d0 100644 --- a/public/inetchannelinfo.h +++ b/public/inetchannelinfo.h @@ -21,6 +21,8 @@ #define FLOW_INCOMING 1 #define MAX_FLOWS 2 // in & out +struct SNetChannelLatencyStats; + class INetChannelInfo { public: @@ -75,12 +77,9 @@ public: virtual float GetTimeoutSeconds() const = 0; - virtual float GetPeakLatency( int flow ) const = 0; - virtual float GetTotalAvgLatency( int flow ) const = 0; - virtual float GetTotalStdDevLatency(int flow ) const = 0; - virtual int GetTotalDropped( int flow ) const = 0; - virtual int GetTotalChoked( int flow ) const = 0; - virtual int GetTotal( int flow ) const = 0; + virtual void ResetLatencyStats( int channel ) = 0; + virtual SNetChannelLatencyStats *GetLatencyStats( int channel ) const = 0; + virtual void SetLatencyStats( int channel, const SNetChannelLatencyStats &stats ) = 0; }; #endif // INETCHANNELINFO_H