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:
22
Source/Network/Event/Notify_65.cpp
Normal file
22
Source/Network/Event/Notify_65.cpp
Normal file
@@ -0,0 +1,22 @@
|
||||
#include "Notify_65.h"
|
||||
|
||||
NotifyClientRequestsConnect2::NotifyClientRequestsConnect2( std::string discoveryAddr, std::string localAddr, int32_t port ) : GenericMessage( 0x65 )
|
||||
{
|
||||
m_discoveryAddr = std::move( discoveryAddr );
|
||||
m_localAddr = std::move( localAddr );
|
||||
m_port = port;
|
||||
}
|
||||
|
||||
ByteBuffer &NotifyClientRequestsConnect2::Serialize()
|
||||
{
|
||||
m_stream.write_u16( m_packetId );
|
||||
m_stream.write_u32( 0 );
|
||||
|
||||
m_stream.write_utf8( m_discoveryAddr );
|
||||
m_stream.write_u32( m_port );
|
||||
|
||||
m_stream.write_utf8( m_localAddr );
|
||||
m_stream.write_u32( m_port );
|
||||
|
||||
return m_stream;
|
||||
}
|
||||
Reference in New Issue
Block a user