C# Class LoginServer.Packets

Basic Login Server Packets.
Show file Open project: polserver/poltools Class Usage Examples

Public Methods

Method Description
GetBytes ( string str, int size ) : byte[]
GetString ( byte byte_str ) : string
LoginPacket ( NetworkStream &ns, Client client ) : void
ReadBE16 ( NetworkStream ns ) : int
ReadInt32 ( NetworkStream ns ) : int
SeedPacket ( NetworkStream &ns, Client &ver ) : void
SendConnectGameServer ( NetworkStream &ns, int index, Client client ) : void
SendLoginDenied ( NetworkStream &ns, byte reason ) : void
ServerSelectPacket ( NetworkStream &ns, Client client ) : void
WriteBE ( MemoryStream ms, IPAddress ip ) : void
WriteBE16 ( MemoryStream ms, short n ) : void
WriteBE16 ( MemoryStream ms, ushort n ) : void
WriteBEflipped ( MemoryStream ms, IPAddress ip ) : void

Private Methods

Method Description
SendServerList ( NetworkStream &ns, Client client ) : void
WriteBE32 ( MemoryStream ms, int p ) : void
WriteBE32 ( MemoryStream ms, uint p ) : void

Method Details

GetBytes() static public method

static public GetBytes ( string str, int size ) : byte[]
str string
size int
return byte[]

GetString() static public method

static public GetString ( byte byte_str ) : string
byte_str byte
return string

LoginPacket() static public method

static public LoginPacket ( NetworkStream &ns, Client client ) : void
ns NetworkStream
client Client
return void

ReadBE16() static public method

static public ReadBE16 ( NetworkStream ns ) : int
ns NetworkStream
return int

ReadInt32() static public method

static public ReadInt32 ( NetworkStream ns ) : int
ns NetworkStream
return int

SeedPacket() static public method

static public SeedPacket ( NetworkStream &ns, Client &ver ) : void
ns NetworkStream
ver Client
return void

SendConnectGameServer() public static method

public static SendConnectGameServer ( NetworkStream &ns, int index, Client client ) : void
ns NetworkStream
index int
client Client
return void

SendLoginDenied() public static method

public static SendLoginDenied ( NetworkStream &ns, byte reason ) : void
ns NetworkStream
reason byte
return void

ServerSelectPacket() public static method

public static ServerSelectPacket ( NetworkStream &ns, Client client ) : void
ns NetworkStream
client Client
return void

WriteBE() static public method

static public WriteBE ( MemoryStream ms, IPAddress ip ) : void
ms MemoryStream
ip IPAddress
return void

WriteBE16() static public method

static public WriteBE16 ( MemoryStream ms, short n ) : void
ms MemoryStream
n short
return void

WriteBE16() static public method

static public WriteBE16 ( MemoryStream ms, ushort n ) : void
ms MemoryStream
n ushort
return void

WriteBEflipped() static public method

static public WriteBEflipped ( MemoryStream ms, IPAddress ip ) : void
ms MemoryStream
ip IPAddress
return void