summaryrefslogtreecommitdiff
path: root/include/pso/packet_classes.h
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2023-03-12 14:34:47 -0300
committermrb0nk500 <b0nk@b0nk.xyz>2023-03-12 14:35:47 -0300
commitd7336127af97ed86778796fb3a9cd203ce8b9306 (patch)
tree1215e2c555f6a3e18213daefae03a516c512241c /include/pso/packet_classes.h
parent8a0ac8490951429277e707607975424b6dcd12b8 (diff)
TProtocol: Add, and match more command handlers, along with some other
functions needed to get them working
Diffstat (limited to 'include/pso/packet_classes.h')
-rw-r--r--include/pso/packet_classes.h13
1 files changed, 13 insertions, 0 deletions
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];