C# 클래스 BonCodeAJP13Namespace.BonCodeAJP13Packet

abstract class, Represents the base class for all BonCodeAJP13 Server Packets, don't create an instance of this class directly
파일 보기 프로젝트 열기: Bilal-S/iis2tomcat 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
m_PacketType byte
m_UserDataLength System.UInt16

공개 메소드들

메소드 설명
BonCodeAJP13Packet ( ) : System
BonCodeAJP13Packet ( byte Buffer ) : System

Initialize the packet from the buffer, this is the normal case, it sets the essential properties of the packet like type

GetDataBytes ( ) : byte[]

Returns the raw data of the packet in an array of bytes

GetPacket ( byte Buffer ) : BonCodeAJP13Packet

Analyze the provided buffer and returns suitable packet instance

GetPackets ( byte Buffer ) : BonCodeAJP13.BonCodeAJP13PacketCollection

Analyze the provided buffer and returns a collection of packets represented by the buffer

PrintPacket ( ) : string

Returns a string of the packet's properties and their values

보호된 메소드들

메소드 설명
FlipArray ( byte Data ) : byte[]

Flips the array to send it using the big endian convention

GetByte ( byte Data, byte &Value, int Pos ) : int

Get the byte value from the array starting from the position Pos

GetByteArray ( byte Data, byte &Value, int Pos, int ArrayLength ) : int

Get the byte array value from the Data array starting from the position Pos

GetDateTime ( byte Data, System.DateTime &Value, int Pos ) : int

Get the DateTime value from the array starting from the position Pos

GetDouble ( byte Data, double &Value, int Pos ) : int

Get the Double value from the array starting from the position Pos

GetInt16 ( byte Data, Int16 &Value, int Pos ) : int

Get the Int16 value from the array starting from the position Pos

GetInt32 ( byte Data, Int32 &Value, int Pos ) : int

Get the Int32 value from the array starting from the position Pos

GetInt64 ( byte Data, System.Int64 &Value, int Pos ) : int

Get the Int64 value from the array starting from the position Pos

GetString ( byte Data, string &Value, int Pos, int StrLength ) : int

Get the String value from the array starting from the position Pos

GetUInt16 ( byte Data, UInt16 &Value, int Pos ) : int

Get the UInt16 value from the array starting from the position Pos

GetUInt32 ( byte Data, UInt32 &Value, int Pos ) : int

Get the UInt32 value from the array starting from the position Pos

GetUInt64 ( byte Data, System.UInt64 &Value, int Pos ) : int

Get the UInt64 value from the array starting from the position Pos

SetByte ( byte Data, byte Value, int Pos ) : int

Set the byte value in the array starting from the position Pos

SetByteArray ( byte Data, byte Value, int Pos, int ArrayLength ) : int

Set the byte array in the Data array starting from the position Pos

SetDateTime ( byte Data, System.DateTime Value, int Pos ) : int

Set the DateTime value in the array starting from the position Pos

SetDouble ( byte Data, double Value, int Pos ) : int

Set the Double value in the array starting from the position Pos

SetInt16 ( byte Data, Int16 Value, int Pos ) : int

Set the Int16 value in the array starting from the position Pos

SetInt32 ( byte Data, Int32 Value, int Pos ) : int

Set the Int32 value in the array starting from the position Pos

SetInt64 ( byte Data, System.Int64 Value, int Pos ) : int

Set the Int64 value in the array starting from the position Pos

SetString ( byte Data, string Value, int Pos, int StrLength ) : int

Set the String value in the array starting from the position Pos String will be transmitted prefixed by length in bytes and terminated by zero byte

SetUInt16 ( byte Data, UInt16 Value, int Pos ) : int

Set the UInt16 value in the array starting from the position Pos

SetUInt32 ( byte Data, UInt32 Value, int Pos ) : int

Set the UInt32 value in the array starting from the position Pos

SetUInt64 ( byte Data, System.UInt64 Value, int Pos ) : int

Set the UInt64 value in the array starting from the position Pos

WriteBonCodeAJP13Header ( byte Data ) : int

Initialize the packet's header in the raw data.

메소드 상세

BonCodeAJP13Packet() 공개 메소드

public BonCodeAJP13Packet ( ) : System
리턴 System

BonCodeAJP13Packet() 공개 메소드

Initialize the packet from the buffer, this is the normal case, it sets the essential properties of the packet like type
public BonCodeAJP13Packet ( byte Buffer ) : System
Buffer byte
리턴 System

FlipArray() 보호된 정적인 메소드

Flips the array to send it using the big endian convention
protected static FlipArray ( byte Data ) : byte[]
Data byte
리턴 byte[]

GetByte() 보호된 정적인 메소드

Get the byte value from the array starting from the position Pos
protected static GetByte ( byte Data, byte &Value, int Pos ) : int
Data byte
Value byte
Pos int
리턴 int

GetByteArray() 보호된 정적인 메소드

Get the byte array value from the Data array starting from the position Pos
protected static GetByteArray ( byte Data, byte &Value, int Pos, int ArrayLength ) : int
Data byte
Value byte
Pos int
ArrayLength int
리턴 int

GetDataBytes() 공개 추상적인 메소드

Returns the raw data of the packet in an array of bytes
public abstract GetDataBytes ( ) : byte[]
리턴 byte[]

GetDateTime() 보호된 정적인 메소드

Get the DateTime value from the array starting from the position Pos
protected static GetDateTime ( byte Data, System.DateTime &Value, int Pos ) : int
Data byte
Value System.DateTime
Pos int
리턴 int

GetDouble() 보호된 정적인 메소드

Get the Double value from the array starting from the position Pos
protected static GetDouble ( byte Data, double &Value, int Pos ) : int
Data byte
Value double
Pos int
리턴 int

GetInt16() 보호된 정적인 메소드

Get the Int16 value from the array starting from the position Pos
protected static GetInt16 ( byte Data, Int16 &Value, int Pos ) : int
Data byte
Value System.Int16
Pos int
리턴 int

GetInt32() 보호된 정적인 메소드

Get the Int32 value from the array starting from the position Pos
protected static GetInt32 ( byte Data, Int32 &Value, int Pos ) : int
Data byte
Value System.Int32
Pos int
리턴 int

GetInt64() 보호된 정적인 메소드

Get the Int64 value from the array starting from the position Pos
protected static GetInt64 ( byte Data, System.Int64 &Value, int Pos ) : int
Data byte
Value System.Int64
Pos int
리턴 int

GetPacket() 공개 정적인 메소드

Analyze the provided buffer and returns suitable packet instance
public static GetPacket ( byte Buffer ) : BonCodeAJP13Packet
Buffer byte
리턴 BonCodeAJP13Packet

GetPackets() 공개 정적인 메소드

Analyze the provided buffer and returns a collection of packets represented by the buffer
public static GetPackets ( byte Buffer ) : BonCodeAJP13.BonCodeAJP13PacketCollection
Buffer byte
리턴 BonCodeAJP13.BonCodeAJP13PacketCollection

GetString() 보호된 정적인 메소드

Get the String value from the array starting from the position Pos
protected static GetString ( byte Data, string &Value, int Pos, int StrLength ) : int
Data byte
Value string
Pos int
StrLength int
리턴 int

GetUInt16() 보호된 정적인 메소드

Get the UInt16 value from the array starting from the position Pos
protected static GetUInt16 ( byte Data, UInt16 &Value, int Pos ) : int
Data byte
Value System.UInt16
Pos int
리턴 int

GetUInt32() 보호된 정적인 메소드

Get the UInt32 value from the array starting from the position Pos
protected static GetUInt32 ( byte Data, UInt32 &Value, int Pos ) : int
Data byte
Value System.UInt32
Pos int
리턴 int

GetUInt64() 보호된 정적인 메소드

Get the UInt64 value from the array starting from the position Pos
protected static GetUInt64 ( byte Data, System.UInt64 &Value, int Pos ) : int
Data byte
Value System.UInt64
Pos int
리턴 int

PrintPacket() 공개 메소드

Returns a string of the packet's properties and their values
public PrintPacket ( ) : string
리턴 string

SetByte() 보호된 정적인 메소드

Set the byte value in the array starting from the position Pos
protected static SetByte ( byte Data, byte Value, int Pos ) : int
Data byte
Value byte
Pos int
리턴 int

SetByteArray() 보호된 정적인 메소드

Set the byte array in the Data array starting from the position Pos
protected static SetByteArray ( byte Data, byte Value, int Pos, int ArrayLength ) : int
Data byte
Value byte
Pos int
ArrayLength int
리턴 int

SetDateTime() 보호된 정적인 메소드

Set the DateTime value in the array starting from the position Pos
protected static SetDateTime ( byte Data, System.DateTime Value, int Pos ) : int
Data byte
Value System.DateTime
Pos int
리턴 int

SetDouble() 보호된 정적인 메소드

Set the Double value in the array starting from the position Pos
protected static SetDouble ( byte Data, double Value, int Pos ) : int
Data byte
Value double
Pos int
리턴 int

SetInt16() 보호된 정적인 메소드

Set the Int16 value in the array starting from the position Pos
protected static SetInt16 ( byte Data, Int16 Value, int Pos ) : int
Data byte
Value System.Int16
Pos int
리턴 int

SetInt32() 보호된 정적인 메소드

Set the Int32 value in the array starting from the position Pos
protected static SetInt32 ( byte Data, Int32 Value, int Pos ) : int
Data byte
Value System.Int32
Pos int
리턴 int

SetInt64() 보호된 정적인 메소드

Set the Int64 value in the array starting from the position Pos
protected static SetInt64 ( byte Data, System.Int64 Value, int Pos ) : int
Data byte
Value System.Int64
Pos int
리턴 int

SetString() 보호된 정적인 메소드

Set the String value in the array starting from the position Pos String will be transmitted prefixed by length in bytes and terminated by zero byte
protected static SetString ( byte Data, string Value, int Pos, int StrLength ) : int
Data byte
Value string
Pos int
StrLength int
리턴 int

SetUInt16() 보호된 정적인 메소드

Set the UInt16 value in the array starting from the position Pos
protected static SetUInt16 ( byte Data, UInt16 Value, int Pos ) : int
Data byte
Value System.UInt16
Pos int
리턴 int

SetUInt32() 보호된 정적인 메소드

Set the UInt32 value in the array starting from the position Pos
protected static SetUInt32 ( byte Data, UInt32 Value, int Pos ) : int
Data byte
Value System.UInt32
Pos int
리턴 int

SetUInt64() 보호된 정적인 메소드

Set the UInt64 value in the array starting from the position Pos
protected static SetUInt64 ( byte Data, System.UInt64 Value, int Pos ) : int
Data byte
Value System.UInt64
Pos int
리턴 int

WriteBonCodeAJP13Header() 보호된 메소드

Initialize the packet's header in the raw data.
protected WriteBonCodeAJP13Header ( byte Data ) : int
Data byte
리턴 int

프로퍼티 상세

m_PacketType 보호되어 있는 프로퍼티

protected byte m_PacketType
리턴 byte

m_UserDataLength 보호되어 있는 프로퍼티

protected UInt16,System m_UserDataLength
리턴 System.UInt16