My favorites | Sign in
Project Home Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
LoginMessage  
Login message which is used to send user credentials
Updated Jan 19, 2011 by kortda...@gmail.com

Introduction

The LoginMessage is used to send user credentials from the client to the server. The server will check these and will send back a login status.

Client

Send

-

Receive

-

Server

Receive

How the packet is read by the server

Value Type Comment
Header uint8 HEADER_LOGIN
Username string
Password string Plain
Client version uint16

Send

The server sends a login status back to the client.

const (
	LOGINSTATUS_IDLE = 0
	LOGINSTATUS_WRONGACCOUNT = 1
	LOGINSTATUS_SERVERERROR = 2
	LOGINSTATUS_DATABASEERROR = 3
	LOGINSTATUS_ALREADYLOGGEDIN = 4
	LOGINSTATUS_READY = 5
	LOGINSTATUS_CHARBANNED = 6
	LOGINSTATUS_SERVERCLOSED = 7
	LOGINSTATUS_WRONGVERSION = 8
	LOGINSTATUS_FAILPROFILELOAD = 9
)

Packet build:

Value Type Comment
Header uint8 HEADER_LOGIN
Status uint32

Powered by Google Project Hosting