mirror of
https://github.com/HikikoMarmy/Champions-Reborn-Server.git
synced 2026-04-05 08:59:54 -03:00
18 lines
468 B
C++
18 lines
468 B
C++
#include "Network/Event/NotifyClientRequestConnect.hpp"
|
|
#include "Game/RealmUser.hpp"
|
|
|
|
NotifyClientRequestConnect::NotifyClientRequestConnect( sptr_user user ) : GenericMessage( 0x3F )
|
|
{
|
|
this->m_clientIp = user->m_discoveryAddr;
|
|
this->m_clientPort = user->m_discoveryPort;
|
|
}
|
|
|
|
void NotifyClientRequestConnect::Serialize( ByteBuffer &out ) const
|
|
{
|
|
out.write_u16( m_packetId );
|
|
out.write_u32( 0 );
|
|
|
|
out.write_sz_utf8( m_clientIp );
|
|
out.write_u32( m_clientPort );
|
|
}
|