MsgFromReceiver Class

Windows CE 5.0 Not SupportedWindows Embedded NavReady 2009 Supported

10/16/2008

This class represents an incoming message that is read from the MSN Direct receiver.

Syntax

class MsgFromReceiver : public Msg

Methods

Method Description

MsgFromReceiver::CheckCRC

Checks if the Cyclic Redundancy Check (CRC) value of the original message matches the CRC value computed from the contents of the message after it was received on the host device.

MsgFromReceiver::GetApplicationType

Returns the MSN Direct service type of the incoming message.

MsgFromReceiver::GetBuffer

Returns a pointer to the first byte of this incoming message after the beginning-of-frame.

MsgFromReceiver::GetSize

Returns the size of this incoming message, subtracting framing.

MsgFromReceiver::GetTransactionId

Returns the transaction ID of this incoming message.

MsgFromReceiver::IsResponse

Returns true if this incoming message is a response message.

MsgFromReceiver::SetSize

Sets the size for the incoming message.

Remarks

This class inherits from the Msg Class.

The DBR701 Class has an instance of this class and uses it to store messages that are read from the MSN Direct receiver. Because the beginning-of-frame is only used to determine the beginning of a message, the internal field InitFrame is never written by DBR701. However, this field remains in the class because this message can be typecast to any other message type, such as a GenericHostMsg message. This message type can also be sent back to the receiver.

After an incoming message has been successfully read by the DBR701 class, the MsgFromReceiver class is typecast to the appropriate message type, and then it is sent to the corresponding event handler for processing.

You should rarely use this class directly. Instead, we recommend that you typecast it to a class that also provides specific functionality for the specified message type.

Requirements

Header DBRLib.h
Library DBRLib.lib
Windows Embedded CE Windows CE 5.0, Windows Embedded NavReady 2009

See Also

Reference

MSN Direct Services Classes