BlueLibs documentation

OBEXFtpClient Members

OBEXFtpClient overview

Public Static (Shared) Properties

DefaultPacketLen (inherited from OBEXClient) 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

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

Public Instance Properties

CurDir Sets current directory
Note    OBEX FTP do NOT support unc urls, you have to specify here the name of the child directory of first hand. For example: a b c d if you are in a directory only possible values are b,c and d, you can not use a\b name for example
MaxOBEXPacketLen (inherited from OBEXClient) max size of obex packet used to communicate with the remote device
ReceiveTimout (inherited from OBEXClient) when using asynchronous communication with the device time out exception is thrown if there is no response for this time
SendTimout (inherited from OBEXClient) Transmit operation timeout
UseAsyncComm (inherited from OBEXClient) toggles asynchronous operation

Public Instance Methods

Connect (inherited from OBEXClient)Overloaded. establishes OBEX session with the remoted device already connected by conn
CreateDir creates new directory
Delete Deletes file or directory of the current directory.
Note    Only empty directory can be deleted, you have first to emptify the directory deleting file by file of that directory and then to delete directory.
DirUp Navigates one dir level up to parent directory.
Disconnect (inherited from OBEXClient) 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.
Get Gets file from current directory
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.
ListDir Returns XML directory listing of the current directory Use DirParser class to parse this XML listing.
Put puts a file in current directory
OBEXFileObject NoteFile = new OBEXFileObject(OBEXFtpClient.DefaultPacketLen);
NoteFile.Name = "my file.txt";
NoteFile.Type = "text/plain";
NoteFile.Bytes = BTUtils.StrToByteArray("tesing data");
OBEXFtpClient.Put(NoteFile);
SendCommand (inherited from OBEXClient) 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 (inherited from OBEXClient) Send the Cmd command and collects response while obex response is continue
SendCommandPut (inherited from OBEXClient) 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 (inherited from OBEXClient) new data is just read
OnRecvResponse (inherited from OBEXClient) new response is just received and parsed
OnSendCmd (inherited from OBEXClient) new command is to be sent
OnSendData (inherited from OBEXClient) new data is to be sent

Protected Instance Fields

ConIDHeader (inherited from OBEXClient) CONNECTION ID header kept for use in next commands if necessary like for ftp clients
WhoHeader (inherited from OBEXClient) 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 (inherited from OBEXClient) this method is called after response to the connect command is received by the class.
MakeOBEXConnectCmd Adds TARGET header to the connection request
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.
OBEXConnect (inherited from OBEXClient)Overloaded. establish OBEX session to the device, maximum OBEX packet length is specified in PacketSize.
SplitPut (inherited from OBEXClient) headers must be in order of sending. splits headers into commands suitable for sending taking max obex packet length into account

See Also

OBEXFtpClient Class | BlueLibs.OBEX.Client Namespace