class CAVERNplus_remoteFileIOClient_c

Upload and download files to and from a remote server

Public Methods

int download (char* ipAddress, char* localFilename, char* remoteFileName)
Download a file from the remote server
void setRemotePort (int port = CAVERNplus_remoteFileIOServer_c::defaultPort)
Set port number to connect to.
int upload (char* ipAddress, char* localFileName, char* remoteFileName)
Upload a file to the remote server

Public


const int CAVERNplus_remoteFileIOClient_c :: OK
Status ok
const int CAVERNplus_remoteFileIOClient_c :: FAILED
Status failed
const int CAVERNplus_remoteFileIOClient_c :: CANNOT_CONNECT
Cannot connect to remote server.
const int CAVERNplus_remoteFileIOClient_c :: CANNOT_READ_LOCAL_FILE
Cannot open local file for reading.
const int CAVERNplus_remoteFileIOClient_c :: CANNOT_WRITE_LOCAL_FILE
CAnnot write to local file.
const int CAVERNplus_remoteFileIOClient_c :: INVALID_COMMAND
Received invalid command from server.
const int CAVERNplus_remoteFileIOClient_c :: MEM_ALLOC_ERR
Memory allocation error.

Documentation

Upload and download files to and from a remote server. This client is designed specifically to connect to CAVERNplus_remoteFileIOServer_c.

int upload(char* ipAddress, char* localFileName, char* remoteFileName)
Upload a file to the remote server. If upload fails because it is unable to write to the remote server or a network error occurs this function will return with a FAILED.
Returns:
OK, FAILED< CANNOT_READ_LOCAL_FILE, INVALID_COMMAND, CANNOT_CONNECT
Parameters:
ipAddress - is IP address of remote server.
localFileName - is local file to send.
remoteFileName - is filename to use at the remote end.

int download(char* ipAddress, char* localFilename, char* remoteFileName)
Download a file from the remote server. If the remote file is not found or a network error occurs, this function will return with a failed.
Returns:
OK, FAILED, CANNOT_WRITE_LOCAL_FILE, INVALID_COMMAND, CANNOT_CONNECT
Parameters:
ipAddress - is IP address of remote server.
localFileName - is local file write to.
remoteFileName - is remote file to get.


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de