summaryrefslogtreecommitdiff
path: root/include/pso/TProtocol.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/TProtocol.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/TProtocol.h')
-rw-r--r--include/pso/TProtocol.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/pso/TProtocol.h b/include/pso/TProtocol.h
index bcc7386..bc0f27f 100644
--- a/include/pso/TProtocol.h
+++ b/include/pso/TProtocol.h
@@ -19,6 +19,8 @@
#include <pso/TTcpSocket.h>
EXTERN_OBJECT_NAME(TProtocol);
+extern u32 new_ip_addr;
+extern u16 new_port;
extern TPlyMeetUserExtension meet_user_settings;
extern u32 game_variations[16][2];
extern void copy_packet(struct packet *pkt);
@@ -154,6 +156,7 @@ public:
void some_stub();
int handle_command(struct packet *pkt);
void parse_packet();
+ void seq_jump(u8 *some_struct, TPlyMeetUserExtension &extension);
// Command handlers.
// 0x01
@@ -196,6 +199,15 @@ public:
void recv_upload(packet &pkt);
// 0x11
void recv_message(packet &pkt);
+ // 0x19
+ void recv_port(packet &pkt);
+ // 0x1B
+ void recv_battle_data(packet &pkt);
+ // 0x1C
+ void recv_system_file(packet &pkt);
+
+ // Send command handlers.
+ int send_login3();
};
#endif