mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 22:47:29 +08:00
fd0d61244d
* Implement RakServer Set/GetAllowedPlayers
100 lines
2.3 KiB
C++
100 lines
2.3 KiB
C++
// TODO: Implement RakPeer.h
|
|
|
|
#ifndef __RAK_PEER_H
|
|
#define __RAK_PEER_H
|
|
|
|
#include "Export.h"
|
|
#include "RakPeerInterface.h"
|
|
|
|
class RAK_DLL_EXPORT RakPeer : public RakPeerInterface
|
|
{
|
|
public:
|
|
|
|
void vftable_0();
|
|
void vftable_4();
|
|
void vftable_8();
|
|
void vftable_C();
|
|
void vftable_18();
|
|
void vftable_1C();
|
|
void vftable_20();
|
|
void vftable_24();
|
|
void vftable_28();
|
|
|
|
/// Sets how many incoming connections are allowed. If this is less than the number of players currently connected,
|
|
/// no more players will be allowed to connect. If this is greater than the maximum number of peers allowed,
|
|
/// it will be reduced to the maximum number of peers allowed. Defaults to 0.
|
|
/// \param[in] numberAllowed Maximum number of incoming connections allowed.
|
|
void SetMaximumIncomingConnections( unsigned short numberAllowed );
|
|
|
|
/// Returns the value passed to SetMaximumIncomingConnections()
|
|
/// \return the maximum number of incoming connections, which is always <= maxConnections
|
|
unsigned short GetMaximumIncomingConnections( void ) const;
|
|
|
|
void vftable_2C();
|
|
void vftable_30();
|
|
void vftable_34();
|
|
void vftable_38();
|
|
void vftable_3C();
|
|
void vftable_40();
|
|
void vftable_44();
|
|
void vftable_48();
|
|
void vftable_4C();
|
|
void vftable_50();
|
|
void vftable_54();
|
|
void vftable_58();
|
|
void vftable_5C();
|
|
void vftable_60();
|
|
void vftable_64();
|
|
void vftable_68();
|
|
void vftable_6C();
|
|
void vftable_70();
|
|
void vftable_74();
|
|
void vftable_78();
|
|
void vftable_7C();
|
|
void vftable_80();
|
|
void vftable_84();
|
|
void vftable_88();
|
|
void vftable_8C();
|
|
void vftable_90();
|
|
void vftable_94();
|
|
void vftable_98();
|
|
void vftable_9C();
|
|
void vftable_A0();
|
|
void vftable_A4();
|
|
void vftable_A8();
|
|
void vftable_AC();
|
|
void vftable_B0();
|
|
void vftable_B4();
|
|
void vftable_B8();
|
|
void vftable_BC();
|
|
void vftable_C0();
|
|
void vftable_C4();
|
|
void vftable_C8();
|
|
void vftable_CC();
|
|
void vftable_D0();
|
|
void vftable_D4();
|
|
void vftable_D8();
|
|
void vftable_DC();
|
|
void vftable_E0();
|
|
void vftable_E4();
|
|
void vftable_E8();
|
|
void vftable_EC();
|
|
void vftable_F0();
|
|
void vftable_F4();
|
|
void vftable_F8();
|
|
void vftable_FC();
|
|
void vftable_100();
|
|
void vftable_104();
|
|
void vftable_108();
|
|
void vftable_10C();
|
|
void vftable_110();
|
|
|
|
protected:
|
|
|
|
///Store the maximum incoming connection allowed
|
|
unsigned short maximumIncomingConnections;
|
|
|
|
};
|
|
|
|
#endif
|