mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-12-07 02:28:22 +00:00
Update INetChannel.
This commit is contained in:
parent
c9c1b66154
commit
688e870937
@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user