2021-12-05 17:54:36 +00:00
|
|
|
#ifndef AUTHPACKETS_H
|
|
|
|
#define AUTHPACKETS_H
|
|
|
|
|
|
|
|
#define _VARIADIC_MAX 10
|
|
|
|
#include "dCommonVars.h"
|
|
|
|
#include "dNetCommon.h"
|
|
|
|
|
|
|
|
class dServer;
|
|
|
|
|
|
|
|
namespace AuthPackets {
|
|
|
|
void HandleHandshake(dServer* server, Packet* packet);
|
|
|
|
void SendHandshake(dServer* server, const SystemAddress& sysAddr, const std::string& nextServerIP, uint16_t nextServerPort);
|
2022-07-28 13:39:57 +00:00
|
|
|
|
2021-12-05 17:54:36 +00:00
|
|
|
void HandleLoginRequest(dServer* server, Packet* packet);
|
|
|
|
void SendLoginResponse(dServer* server, const SystemAddress& sysAddr, eLoginResponse responseCode, const std::string& errorMsg, const std::string& wServerIP, uint16_t wServerPort, std::string username);
|
|
|
|
}
|
|
|
|
|
2022-07-28 13:39:57 +00:00
|
|
|
#endif // AUTHPACKETS_H
|