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

ObexPduFactory.ParseResponseToConnect Method 

[This is preliminary documentation and subject to change.]

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

[Visual Basic]
Public Function ParseResponseToConnect( _
   ByVal buffer As Byte(), _
   ByVal length As Integer _
) As ObexParsedResponsePdu
[C#]
public ObexParsedResponsePdu ParseResponseToConnect(
   byte[] buffer,
   int length
);

Parameters

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

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 | ParseResponse | ParseResponse