mirror of
https://github.com/HikikoMarmy/Champions-Reborn-Server.git
synced 2026-04-04 08:49:47 -03:00
29 lines
778 B
C++
29 lines
778 B
C++
#pragma once
|
|
|
|
#include <memory>
|
|
#include <string>
|
|
|
|
#include "../GenericNetRequest.hpp"
|
|
#include "../GenericNetResponse.hpp"
|
|
#include "Common/Constant.hpp"
|
|
|
|
class RequestGetServerAddress : public GenericRequest {
|
|
public:
|
|
static std::unique_ptr< RequestGetServerAddress > Create()
|
|
{
|
|
return std::make_unique< RequestGetServerAddress >();
|
|
}
|
|
|
|
sptr_generic_response ProcessRequest( sptr_socket socket, sptr_byte_stream stream ) override;
|
|
void Deserialize( sptr_byte_stream stream ) override;
|
|
};
|
|
|
|
class ResultGetServerAddress : public GenericResponse {
|
|
public:
|
|
std::string m_ip;
|
|
int32_t m_port;
|
|
RealmGameType m_gameType;
|
|
|
|
ResultGetServerAddress( GenericRequest *request, std::string ip, int32_t port, RealmGameType clientType );
|
|
void Serialize( ByteBuffer &out ) const;
|
|
}; |