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
Afficher le fichier Open project: MarkPaxton/SensorShare3 Class Usage Examples

Méthodes publiques

Свойство Type Description
data byte[]
type MessageType

Méthodes publiques

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

Method Details

GetBytes() public méthode

public GetBytes ( ) : byte[]
Résultat byte[]

TypedMessage() public méthode

public TypedMessage ( MessageType type, byte data ) : System
type MessageType
data byte
Résultat System

TypedMessage() public méthode

public TypedMessage ( byte messageBuffer, int messageLength ) : System
messageBuffer byte
messageLength int
Résultat System

Property Details

data public_oe property

public byte[] data
Résultat byte[]

type public_oe property

public MessageType type
Résultat MessageType