Began adding basic authentication

This commit is contained in:
Kayne Ruse
2014-05-06 21:35:07 +10:00
parent 8358d72a98
commit 1beb7cbd5d
8 changed files with 24 additions and 10 deletions
+3 -2
View File
@@ -27,7 +27,7 @@
#include "SDL/SDL_net.h"
#define NETWORK_VERSION 20140428
#define NETWORK_VERSION 20140506
#define PACKET_STRING_SIZE 100
#pragma pack(push, 0)
@@ -88,8 +88,8 @@ union SerialPacket {
//information about the client
struct ClientInformation {
Metadata meta;
//TODO: change clientIndex to accountIndex for player ID
int clientIndex;
int accountIndex;
int characterIndex;
char username[PACKET_STRING_SIZE];
char handle[PACKET_STRING_SIZE];
@@ -108,6 +108,7 @@ union SerialPacket {
struct CharacterInformation {
Metadata meta;
int clientIndex;
int accountIndex;
int characterIndex;
char handle[PACKET_STRING_SIZE];
char avatar[PACKET_STRING_SIZE];