Add const getter for 'CNetChan::remote_address'

Return as const reference.
This commit is contained in:
Kawe Mazidjatari 2023-04-30 11:11:33 +02:00
parent d978d0c745
commit 17c8a5e49c
2 changed files with 9 additions and 0 deletions

View File

@ -195,6 +195,14 @@ const bf_write& CNetChan::GetStreamVoice(void) const
return this->m_StreamVoice;
}
//-----------------------------------------------------------------------------
// Purpose: gets a const reference to remote_address
//-----------------------------------------------------------------------------
const netadr_t& CNetChan::GetRemoteAddress(void) const
{
return this->remote_address;
}
//-----------------------------------------------------------------------------
// Purpose: checks if the reliable stream is overflowed
// Output : true if overflowed, false otherwise

View File

@ -102,6 +102,7 @@ public:
int GetSocket(void) const;
const bf_write& GetStreamVoice(void) const;
const netadr_t& GetRemoteAddress(void) const;
bool IsOverflowed(void) const;
void Clear(bool bStopProcessing);