C# 클래스 SensorShare.TypedMessage

Create a main data message - These are sent by both the client and server anytime the public method Send is called. The expectation is that in most systems that these will be the most frequently sent messages as these are used for application level conversation. All other messages are basically system-management messages. Contains the standard header plus the array of bytes passed in by the application
파일 보기 프로젝트 열기: MarkPaxton/SensorShare3 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
data byte[]
type MessageType

공개 메소드들

메소드 설명
GetBytes ( ) : byte[]
TypedMessage ( MessageType type, byte data ) : System
TypedMessage ( byte messageBuffer, int messageLength ) : System

메소드 상세

GetBytes() 공개 메소드

public GetBytes ( ) : byte[]
리턴 byte[]

TypedMessage() 공개 메소드

public TypedMessage ( MessageType type, byte data ) : System
type MessageType
data byte
리턴 System

TypedMessage() 공개 메소드

public TypedMessage ( byte messageBuffer, int messageLength ) : System
messageBuffer byte
messageLength int
리턴 System

프로퍼티 상세

data 공개적으로 프로퍼티

public byte[] data
리턴 byte[]

type 공개적으로 프로퍼티

public MessageType type
리턴 MessageType