C# Class 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
显示文件 Open project: MarkPaxton/SensorShare3 Class Usage Examples

Public Properties

Property Type Description
data byte[]
type MessageType

Public Methods

Method Description
GetBytes ( ) : byte[]
TypedMessage ( MessageType type, byte data ) : System
TypedMessage ( byte messageBuffer, int messageLength ) : System

Method Details

GetBytes() public method

public GetBytes ( ) : byte[]
return byte[]

TypedMessage() public method

public TypedMessage ( MessageType type, byte data ) : System
type MessageType
data byte
return System

TypedMessage() public method

public TypedMessage ( byte messageBuffer, int messageLength ) : System
messageBuffer byte
messageLength int
return System

Property Details

data public_oe property

public byte[] data
return byte[]

type public_oe property

public MessageType type
return MessageType