mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 22:47:29 +08:00
[raknet] Implement RakPeer::IsActive
This commit is contained in:
parent
3ab1451889
commit
e59401263a
@ -65,9 +65,13 @@ void RakPeer::vftable_24()
|
||||
// TODO: RakPeer::vftable_24() (saco W: 10040620) (server W: 457BD0 L: 806FB70) (bot W: 40B390 L: 80730D2)
|
||||
}
|
||||
|
||||
void RakPeer::vftable_28()
|
||||
// --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
// Description:
|
||||
// Returns true if the network threads are running
|
||||
// --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
inline bool RakPeer::IsActive( void ) const
|
||||
{
|
||||
// TODO: RakPeer::vftable_28() (saco W: 1003E040) (server W: 455330 L: 8071070) (bot W: 408FE0 L: 80731E2)
|
||||
return endThreads == false;
|
||||
}
|
||||
|
||||
void RakPeer::vftable_2C()
|
||||
|
@ -32,6 +32,10 @@ public:
|
||||
/// \return the maximum number of incoming connections, which is always <= maxConnections
|
||||
unsigned short GetMaximumIncomingConnections( void ) const;
|
||||
|
||||
/// Returns if the network thread is running
|
||||
/// \return true if the network thread is running, false otherwise
|
||||
bool IsActive( void ) const;
|
||||
|
||||
void vftable_2C();
|
||||
void vftable_30();
|
||||
void vftable_34();
|
||||
@ -110,6 +114,9 @@ public:
|
||||
|
||||
protected:
|
||||
|
||||
///Set this to true to terminate the Peer thread execution
|
||||
volatile bool endThreads;
|
||||
|
||||
///Store the maximum incoming connection allowed
|
||||
unsigned short maximumIncomingConnections;
|
||||
|
||||
|
@ -29,6 +29,10 @@ public:
|
||||
/// \return the maximum number of incoming connections, which is always <= maxConnections
|
||||
virtual unsigned short GetMaximumIncomingConnections( void ) const=0;
|
||||
|
||||
/// Returns if the network thread is running
|
||||
/// \return true if the network thread is running, false otherwise
|
||||
virtual bool IsActive( void ) const=0;
|
||||
|
||||
virtual void vftable_2C()=0;
|
||||
virtual void vftable_30()=0;
|
||||
virtual void vftable_34()=0;
|
||||
|
Loading…
Reference in New Issue
Block a user