INetNub

C++
struct INetNub {
  struct SStatistics {
    float bandwidthUp;
    float bandwidthDown;
  };
};
File

INetwork.h

INetNub::SStatistics Structure
C++
struct SStatistics {
  float bandwidthUp;
  float bandwidthDown;
};
File

INetwork.h

INetNub::SStatistics::bandwidthDown Data Member
C++
float bandwidthDown;
INetNub::SStatistics::bandwidthUp Data Member
C++
float bandwidthUp;
INetNub::SStatistics::SStatistics Constructor
C++
SStatistics();
INetNub::~INetNub Destructor
C++
virtual ~INetNub();
INetNub::ConnectTo Method
C++
virtual bool ConnectTo(const char * address, const char * connectionString) = 0;
Parameters
Parameters
Description
const char * address
The address to connect to ("127.0.0.1:20319" for example).
const char * connectionString
An arbitrary string to pass to the other end of this connection saying what we'd like to do.
Returns

True for success, false otherwise.

Description

Connects to a remote host.

INetNub::DeleteNub Method
C++
virtual void DeleteNub() = 0;
Description

Game will no longer use this object; it should be deleted.

INetNub::DisconnectPlayer Method
C++
virtual void DisconnectPlayer(EDisconnectionCause cause, EntityId plr_id, const char* reason) = 0;
Description

An authorization result comes from master server.

INetNub::GetMemoryStatistics Method
C++
virtual void GetMemoryStatistics(ICrySizer* pSizer) = 0;
Description

Collects memory usage info.

INetNub::GetNumChannels Method
C++
virtual int GetNumChannels() = 0;
INetNub::GetStatistics Method
C++
virtual const INetNub::SStatistics& GetStatistics() = 0;
Description

Fetches current nub-wide statistics.

INetNub::HasPendingConnections Method
C++
virtual bool HasPendingConnections() = 0;
INetNub::IsConnecting Method
C++
virtual bool IsConnecting() = 0;
Description

Returns true if we nub is connecting now.