C# Class BattleNet.GenericServer

Exibir arquivo Open project: dkuwahara/AlphaBot

Public Properties

Property Type Description
m_socket System.Net.Sockets.TcpClient
nulls byte[]
one byte[]
six byte[]
ten byte[]
zero byte[]

Protected Properties

Property Type Description
m_owner ClientlessBot
m_stream System.Net.Sockets.NetworkStream
platform String

Public Methods

Method Description
BuildPacket ( byte command ) : byte[]
GenericServer ( ClientlessBot cb ) : System
Kill ( ) : void
PrintPacket ( byte packet ) : void
ThreadFunction ( ) : void
Write ( byte packet ) : void

Protected Methods

Method Description
DispatchPacket ( byte type ) : PacketHandler
GetPacket ( List &bncsBuffer, List &data ) : System.Boolean

Method Details

BuildPacket() public method

public BuildPacket ( byte command ) : byte[]
command byte
return byte[]

DispatchPacket() protected method

protected DispatchPacket ( byte type ) : PacketHandler
type byte
return PacketHandler

GenericServer() public method

public GenericServer ( ClientlessBot cb ) : System
cb ClientlessBot
return System

GetPacket() protected method

protected GetPacket ( List &bncsBuffer, List &data ) : System.Boolean
bncsBuffer List
data List
return System.Boolean

Kill() public method

public Kill ( ) : void
return void

PrintPacket() public method

public PrintPacket ( byte packet ) : void
packet byte
return void

ThreadFunction() public method

public ThreadFunction ( ) : void
return void

Write() public method

public Write ( byte packet ) : void
packet byte
return void

Property Details

m_owner protected_oe property

protected ClientlessBot,BattleNet m_owner
return ClientlessBot

m_socket public_oe property

public TcpClient,System.Net.Sockets m_socket
return System.Net.Sockets.TcpClient

m_stream protected_oe property

protected NetworkStream,System.Net.Sockets m_stream
return System.Net.Sockets.NetworkStream

nulls public_oe static_oe property

public static byte[] nulls
return byte[]

one public_oe static_oe property

public static byte[] one
return byte[]

platform protected_oe static_oe property

protected static String platform
return String

six public_oe static_oe property

public static byte[] six
return byte[]

ten public_oe static_oe property

public static byte[] ten
return byte[]

zero public_oe static_oe property

public static byte[] zero
return byte[]