mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-09-20 04:36:01 +08:00
[raknet] Change RakPeer::vftable_24()
to RakPeer::Disconnect(...)
This commit is contained in:
@ -101,7 +101,11 @@ void RakPeer::vftable_20()
|
||||
// TODO: RakPeer::vftable_20() (saco W: 10040550) (server W: 457B00 L: 806D230) (bot W: 40B2C0 L: 807306A)
|
||||
}
|
||||
|
||||
void RakPeer::vftable_24()
|
||||
// --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
// Description:
|
||||
// Stops the network threads and close all connections. Multiple calls are ok.
|
||||
// --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
void RakPeer::Disconnect( unsigned int blockDuration, unsigned char orderingChannel )
|
||||
{
|
||||
// TODO: RakPeer::vftable_24() (saco W: 10040620) (server W: 457BD0 L: 806FB70) (bot W: 40B390 L: 80730D2)
|
||||
}
|
||||
|
@ -19,8 +19,6 @@ public:
|
||||
void vftable_8();
|
||||
void vftable_C();
|
||||
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,
|
||||
@ -43,6 +41,12 @@ public:
|
||||
/// \param[in,out] passwordDataLength Maximum size of the array passwordData. Modified to hold the number of bytes actually written
|
||||
void GetIncomingPassword( char* passwordData, int *passwordDataLength );
|
||||
|
||||
/// \brief Stops the network threads and closes all connections.
|
||||
/// \param[in] blockDuration How long you should wait for all remaining messages to go out, including ID_DISCONNECTION_NOTIFICATION. If 0, it doesn't wait at all.
|
||||
/// \param[in] orderingChannel If blockDuration > 0, ID_DISCONNECTION_NOTIFICATION will be sent on this channel
|
||||
/// If you set it to 0 then the disconnection notification won't be sent
|
||||
void Disconnect( unsigned int blockDuration, unsigned char orderingChannel=0 );
|
||||
|
||||
/// Returns if the network thread is running
|
||||
/// \return true if the network thread is running, false otherwise
|
||||
bool IsActive( void ) const;
|
||||
|
@ -15,8 +15,6 @@ public:
|
||||
virtual void vftable_8()=0;
|
||||
virtual void vftable_C()=0;
|
||||
virtual void vftable_20()=0;
|
||||
virtual void vftable_24()=0;
|
||||
virtual void vftable_28()=0;
|
||||
|
||||
/// 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,
|
||||
@ -39,6 +37,12 @@ public:
|
||||
/// \param[in,out] passwordDataLength Maximum size of the array passwordData. Modified to hold the number of bytes actually written
|
||||
virtual void GetIncomingPassword( char* passwordData, int *passwordDataLength )=0;
|
||||
|
||||
/// \brief Stops the network threads and closes all connections.
|
||||
/// \param[in] blockDuration How long you should wait for all remaining messages to go out, including ID_DISCONNECTION_NOTIFICATION. If 0, it doesn't wait at all.
|
||||
/// \param[in] orderingChannel If blockDuration > 0, ID_DISCONNECTION_NOTIFICATION will be sent on this channel
|
||||
/// If you set it to 0 then the disconnection notification won't be sent
|
||||
virtual void Disconnect( unsigned int blockDuration, unsigned char orderingChannel=0 )=0;
|
||||
|
||||
/// Returns if the network thread is running
|
||||
/// \return true if the network thread is running, false otherwise
|
||||
virtual bool IsActive( void ) const=0;
|
||||
|
Reference in New Issue
Block a user