mirror of
https://github.com/HikikoMarmy/Champions-Reborn-Server.git
synced 2026-04-05 08:59:54 -03:00
Reorganized and cleaned up the solution.
This commit is contained in:
25
Source/Network/Event/NotifyClientRequestConnect_RTA.cpp
Normal file
25
Source/Network/Event/NotifyClientRequestConnect_RTA.cpp
Normal file
@@ -0,0 +1,25 @@
|
||||
#include "Network\Event\NotifyClientRequestConnect_RTA.hpp"
|
||||
|
||||
#include "Game/RealmUser.hpp"
|
||||
|
||||
NotifyClientRequestConnect_RTA::NotifyClientRequestConnect_RTA( sptr_user user ) : GenericMessage( 0x65 )
|
||||
{
|
||||
this->m_remoteAddr = user->m_discoveryAddr;
|
||||
this->m_remotePort = user->m_discoveryPort;
|
||||
|
||||
this->m_localAddr = user->m_localAddr;
|
||||
this->m_localPort = user->m_localPort;
|
||||
|
||||
}
|
||||
|
||||
void NotifyClientRequestConnect_RTA::Serialize( ByteBuffer &out ) const
|
||||
{
|
||||
out.write_u16( m_packetId );
|
||||
out.write_u32( 0 );
|
||||
|
||||
out.write_utf8( this->m_localAddr );
|
||||
out.write_u32( this->m_localPort );
|
||||
|
||||
out.write_utf8( this->m_remoteAddr );
|
||||
out.write_u32( this->m_remotePort );
|
||||
}
|
||||
Reference in New Issue
Block a user