C# 클래스 ArtemisComm.Packet

상속: IDisposable
파일 보기 프로젝트 열기: russjudge/ArtemisSBS-ProtocolSharp 1 사용 예제들

Private Properties

프로퍼티 타입 설명
BuildPackage IPackage
FormatIt string
GetLength int
GetPackage IPackage
GetRawData System.IO.MemoryStream
SetOrigin void
SetRawData void

공개 메소드들

메소드 설명
Dispose ( ) : void
OverrideSetOrigin ( OriginType origin ) : void

sets the origin. Origin is normally not accessible since it can be deduced from the Packet type. However, this allows setting the origin for reverse-engineering the protocol AND for future-compatibility: if a new packet is built into a later version of Artemis, this library might not need updated to continue to support it.

OverrideSetPacketType ( PacketType packetType ) : void
OverrideSetPacketType ( int packetType ) : void
Packet ( IPackage package ) : System
Packet ( Stream stream ) : System

보호된 메소드들

메소드 설명
Dispose ( bool isDisposing ) : void

비공개 메소드들

메소드 설명
BuildPackage ( MemoryStream stream, int index, Type packageType ) : IPackage
FormatIt ( byte buffer ) : string
GetLength ( byte byteArray, int startIndex ) : int
GetPackage ( MemoryStream stream, int index, Type packageType ) : IPackage
GetRawData ( ) : MemoryStream
SetOrigin ( ) : void

Sets the origin. Origin is not set if the Packet type is not among the defined list--this is to assume that it is working with a newer version of Artemis than originally written for.

SetRawData ( ) : void

메소드 상세

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

protected Dispose ( bool isDisposing ) : void
isDisposing bool
리턴 void

OverrideSetOrigin() 공개 메소드

sets the origin. Origin is normally not accessible since it can be deduced from the Packet type. However, this allows setting the origin for reverse-engineering the protocol AND for future-compatibility: if a new packet is built into a later version of Artemis, this library might not need updated to continue to support it.
public OverrideSetOrigin ( OriginType origin ) : void
origin OriginType The origin.
리턴 void

OverrideSetPacketType() 공개 메소드

public OverrideSetPacketType ( PacketType packetType ) : void
packetType PacketType
리턴 void

OverrideSetPacketType() 공개 메소드

public OverrideSetPacketType ( int packetType ) : void
packetType int
리턴 void

Packet() 공개 메소드

public Packet ( IPackage package ) : System
package IPackage
리턴 System

Packet() 공개 메소드

public Packet ( Stream stream ) : System
stream Stream
리턴 System