mirror of
https://github.com/HikikoMarmy/Champions-Reborn-Server.git
synced 2026-04-05 17:09:49 -03:00
Reorganized and cleaned up the solution.
This commit is contained in:
17
Source/Network/Event/NotifyClientRequestConnect.cpp
Normal file
17
Source/Network/Event/NotifyClientRequestConnect.cpp
Normal file
@@ -0,0 +1,17 @@
|
||||
#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 );
|
||||
}
|
||||
Reference in New Issue
Block a user