From d7336127af97ed86778796fb3a9cd203ce8b9306 Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Sun, 12 Mar 2023 14:34:47 -0300 Subject: TProtocol: Add, and match more command handlers, along with some other functions needed to get them working --- include/pso/packet_classes.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'include/pso/packet_classes.h') diff --git a/include/pso/packet_classes.h b/include/pso/packet_classes.h index df47979..0764388 100644 --- a/include/pso/packet_classes.h +++ b/include/pso/packet_classes.h @@ -35,6 +35,19 @@ TMenuListEntry(QuestListEntry, char short_description[112]; ); +class TRecvPort { +public: + packet_header header; + u32 ip_addr; + short port; +public: + void bswap() { + header.bswap(); + bswap_32(&ip_addr); + bswap_16(as(u16 *, &port)); + }; +}; + class TPlyMeetUserExtension { public: TPlyGuildCardTag tags[8]; -- cgit v1.2.3-13-gbd6f