mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Add const getter for 'CNetChan::remote_address'
Return as const reference.
This commit is contained in:
parent
d978d0c745
commit
17c8a5e49c
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user