summaryrefslogtreecommitdiff
path: root/include/pso
diff options
context:
space:
mode:
Diffstat (limited to 'include/pso')
-rw-r--r--include/pso/TProtocol.h9
-rw-r--r--include/pso/packet_classes.h18
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;