diff options
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/src/client.cpp b/src/client.cpp index f07ded2b..19e0fa46 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -40,9 +40,28 @@ int main(int argc, char *argv[]) // Send a login message MessageOut msg; - msg.writeByte(MSG_LOGIN); - msg.writeString("nym"); + + // Login + ///* + msg.writeByte(MSG_ACCOUNT); + msg.writeByte(MSG_ACCOUNT_LOGIN); + msg.writeString("test"); + msg.writeString("password"); + //*/ + + // Register + /* + msg.writeByte(MSG_ACCOUNT); + msg.writeByte(MSG_ACCOUNT_REGISTER); + msg.writeString("test"); msg.writeString("password"); + msg.writeString("test@email.addr"); + */ + + for (unsigned int i = 0; i < msg.getPacket()->length; i++) { + printf("%x ", msg.getPacket()->data[i]); + } + printf("\n"); SDLNet_TCP_Send(tcpsock, msg.getPacket()->data, msg.getPacket()->length); |