diff options
author | mrb0nk500 <b0nk@b0nk.xyz> | 2023-03-20 14:02:23 -0300 |
---|---|---|
committer | mrb0nk500 <b0nk@b0nk.xyz> | 2023-03-20 14:02:23 -0300 |
commit | 769c041207521e8b5fd46a616b499fe21088c9a7 (patch) | |
tree | 079a2cf414909b04a9ae3668c054c8988d7938fd /include | |
parent | 0d2f9f05d2fdf31ca21e6e5795880f98dc38821a (diff) |
TProtocol: Start work on the command senders
Diffstat (limited to 'include')
-rw-r--r-- | include/pso/TProtocol.h | 9 | ||||
-rw-r--r-- | include/pso/packet_classes.h | 18 |
2 files changed, 27 insertions, 0 deletions
diff --git a/include/pso/TProtocol.h b/include/pso/TProtocol.h index 6991c67..31e6eab 100644 --- a/include/pso/TProtocol.h +++ b/include/pso/TProtocol.h @@ -245,7 +245,16 @@ public: void recv_emergency_call(packet &pkt); // Send command handlers. + // 0x03 + void send_regist(); + // 0x04 + void send_login2(int disable_udp); + // Doesn't send a command. int send_login3(); + // 0x05 + void send_logout(); + // 0x06 + void send_chat(TPlyGuildCardTag &tag, char *mesg); }; #endif diff --git a/include/pso/packet_classes.h b/include/pso/packet_classes.h index 7fbec48..98f45bc 100644 --- a/include/pso/packet_classes.h +++ b/include/pso/packet_classes.h @@ -83,6 +83,24 @@ union game_command_union { u8 bytes[1024]; }; +class TRegister { +public: + packet_header header; + TPlySmth smth; + u32 sub_version; + u8 is_extended; + u8 language; + u16 unknown; + char serial_number[16]; + char access_key[16]; +public: + void bswap() { + header.bswap(); + smth.bswap(); + bswap_32(&sub_version); + }; +}; + class TRecvPort { public: packet_header header; |