BlueLibs documentation

OBEXClient Members

OBEXClient overview

Public Static (Shared) Properties

DefaultPacketLen default size of obex packet

Public Static (Shared) Methods

Equals (inherited from Object) Determines whether the specified Object instances are considered equal.
ReferenceEquals (inherited from Object) Determines whether the specified Object instances are the same instance.

Public Instance Constructors

OBEXClient Overloaded. Initializes a new instance of the OBEXClient class.

Public Instance Properties

MaxOBEXPacketLen max size of obex packet used to communicate with the remote device
ReceiveTimout when using asynchronous communication with the device time out exception is thrown if there is no response for this time
SendTimout Transmit operation timeout
UseAsyncComm toggles asynchronous operation

Public Instance Methods

ConnectOverloaded. establishes OBEX session with the remoted device already connected by conn
Disconnect Only send OBEX disconnect command to the remote device. Please note that ClientConnection will remain opened
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, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object) Gets the Type of the current instance.
SendCommand send OBEX command. no changes are made to the command it is just being marshaled. OnSendCmd event is fired before marshaling command to transport data OnSendData event is fired before sending marshaled data to the remote device OnReadData event is fired after data is received OnRecvResponse event is fired after response data was parsed
SendCommandGet Send the Cmd command and collects response while obex response is continue
SendCommandPut send commands in packet
OBEXHeader[] FileHeaders = file.OBEXHeaders;
OBEXCommand[] Commands = SplitPut(FileHeaders);
SendCommandPut(Commands);
ToString (inherited from Object) Returns a String that represents the current Object.

Public Instance Events

OnReadData new data is just read
OnRecvResponse new response is just received and parsed
OnSendCmd new command is to be sent
OnSendData new data is to be sent

Protected Instance Fields

ConIDHeader CONNECTION ID header kept for use in next commands if necessary like for ftp clients
WhoHeader WHO OBEX header

Protected Instance Methods

Finalize (inherited from Object) Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
GetConnectionHeaders this method is called after response to the connect command is received by the class.
MakeOBEXConnectCmd this method generates OBEX CONNECT command
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.
OBEXConnectOverloaded. establish OBEX session to the device, maximum OBEX packet length is specified in PacketSize.
SplitPut headers must be in order of sending. splits headers into commands suitable for sending taking max obex packet length into account

See Also

OBEXClient Class | BlueLibs.OBEX.Client Namespace