Brecham.Obex — An OBEX library for the .NET Framework

ObexPduFactory.ParseResponse Method (Boolean, Byte[], Int32)

[This is preliminary documentation and subject to change.]

Parse the normal or CONNECT response PDU contained in the given byte array.

[Visual Basic]
Overloads Public Function ParseResponse( _
   ByVal isResponseToConnect As Boolean, _
   ByVal buffer As Byte(), _
   ByVal length As Integer _
) As ObexParsedResponsePdu
[C#]
public ObexParsedResponsePdu ParseResponse(
   bool isResponseToConnect,
   byte[] buffer,
   int length
);

Parameters

isResponseToConnect
Whether the PDU is a response to a CONNECT PDU, or is simply a response to any other PDU type.
buffer
A byte array containing the PDU, starting at index zero.
length
The length of the PDU contained in the buffer.

Return Value

An instance of ObexParsedResponsePdu initialised with the result of the parsing operation.

Remarks

If the PDU is a CONNECT response the extra 'connect' bytes are checked and the value from their maximum packet length field is used to set the PeerMru value.

See Also

ObexPduFactory Class | Brecham.Obex.Pdus Namespace | ObexPduFactory.ParseResponse Overload List | ParseResponse | ParseResponseToConnect