From user's Wiki!
Jump to: navigation, search

For Users

This plugin allows to retrieve and send data to a remote computer. Two new entries will be added to the File menu: Open Remote Data and Save Remote Data.

The supported protocols are:

Read/write data using SFTP protocol

cURL library is being used for transferring data using several protocols. cURL supports DICT, FILE, FTP, FTPS, Gopher, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMTP, SMTPS, Telnet and TFTP. Curl library has been integrated in GIMIAS and allows reading/writing remote data files. The introduced URL will be passed directly to Curl library.

Examples of URLs are:

For protocols that require authentication:

  • FTP with relative path: ftp://<user>:<password>@
  • FTP with absolute path: ftp://<user>:<password>@
  • SFTP with relative path: sftp://<user>:<password>
  • SFTP with absolute path: sftp://<user>:<password>

For Developers

As an example, you can take a look at SendSpaceReader and SendSpaceWriter.

For each protocol, there is a DataEntity reader and a writer. Both should be configured to read/write any kind of data:

m_ValidExtensionsList.push_back( ".*" );
m_ValidTypesList.push_back( Core::DataEntityType( 0xFFFFFFFF ) );

When reading, there are three steps:

  • Remote file is transferred to local computer using a specific temporal local folder with a unique ID
  • Local file is loaded into memory
  • The output DataEntity is published
  • Temporal folder is removed

When writing a file, these are the steps:

  • DataEntity is saved in a temporal folder
  • Local file is transferred to remote computer
  • Temporal folder is removed

Go back to Users