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

ObexPduFactory Constructor 

[This is preliminary documentation and subject to change.]

Initialise a new instance of the ObexPduFactory class, with a local receive buffer size as specified. This instance can then be used to create and parse OBEX PDUs exchanged with an OBEX peer device.

[Visual Basic]
Public Sub New( _
   ByVal bufferSize As Integer _
)
[C#]
public ObexPduFactory(
   int bufferSize
);

Parameters

bufferSize
The size of our local receive buffer.

Remarks

bufferSize sets size of our local receive buffer, which is as the LocalMru property. This size will be advertised to the peer as our “maximum OBEX packet length” in the CONNECT PDU if one is sent.

See MinimumMru and MaximumMru for size restrictions

Exceptions

Exception TypeCondition
ArgumentException bufferSize is not in the valid range.

See Also

ObexPduFactory Class | Brecham.Obex.Pdus Namespace