Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
.gif)
.gif)
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 |
|---|---|
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. |
|
Returns the MSN Direct service type of the incoming message. |
|
Returns a pointer to the first byte of this incoming message after the beginning-of-frame. |
|
Returns the size of this incoming message, subtracting framing. |
|
Returns the transaction ID of this incoming message. |
|
Returns true if this incoming message is a response message. |
|
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 |