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
Show file 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 property

public byte[] data
return byte[]

type public property

public MessageType type
return MessageType