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

ObexPduFactory Methods

The methods of the ObexPduFactory class are listed below. For a complete list of ObexPduFactory class members, see the ObexPduFactory Members topic.

Public Instance Methods

ClearMtu Reset the local Maximum Transmission Unit, that is our maximum send size. This removes any value set earlier by the Mtu property and thus removes the local restriction on the maximum size of PDUs we will send.
CreateOverloaded. Creates a PDU with the given code byte, optional headers, and optional Stream to read into a body header.
CreateRequestOverloaded. Create a request PDU, and validity checks the resultant PDU.
CreateResponseOverloaded. Create a response PDU, optionally as a response to a Connect PDU, and validity checks the resultant PDU.
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object)Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.
GetNewSendBuffer Allocates a new buffer of the correct size for sending.
GetReceiveBuffer Get a buffer of the correct size for receiving.
GetSendBuffer Get a buffer of the correct size for sending. In this implementation one buffer is used for *all* sends for efficiency.
GetType (inherited from Object)Gets the Type of the current instance.
Parse Parse the PDU contained in the given byte array.
ParseForLengthOverloaded. Check whether we have all the bytes that the PDU contains.
ParseResponseOverloaded. Parse the response PDU contained in the given byte array.
ParseResponseToConnect Parse the CONNECT response PDU contained in the given byte array.
ToString (inherited from Object)Returns a String that represents the current Object.

See Also

ObexPduFactory Class | Brecham.Obex.Pdus Namespace