#include <CAVERNnet_remoteFileIO32_c.hxx>
Public Methods | |
CAVERNnet_remoteFileIOClient32_c () | |
void | setRemotePort (int port=CAVERNnet_remoteFileIOServer32_c::DEFAULT_PORT) |
Set port number to connect to. | |
int | upload (char *ipAddress, char *localFileName, char *remoteFileName) |
int | download (char *ipAddress, char *localFilename, char *remoteFileName) |
int | getRemoteDateTime (char *ipAddress, char *remoteFileName, int *remDay, int *remMon, int *remYear, int *remHour, int *remMin, int *remSec) |
int | compareDateTime (int day1, int month1, int year1, int hour1, int minute1, int second1, int day2, int month2, int year2, int hour2, int minute2, int second2) |
void | showStats (char *streamInfo, char *comment) |
int | logStats (char *streamInfo, char *comment, FILE *filePtr) |
int | sendStats (char *streamInfo, char *comment) |
int | initSendStats (char *monitorClientIP, int port=PERF_DAEMON_DEFAULT_PORT) |
void | exitSendStats () |
Static Public Methods | |
int | getLocalDateTime (char *filename, int *day, int *month, int *year, int *hour, int *minute, int *second) |
Static Public Attributes | |
const int | OK |
Status ok. | |
const int | FAILED |
Status failed. | |
const int | CANNOT_CONNECT |
Cannot connect to remote server. | |
const int | CANNOT_READ_LOCAL_FILE |
Cannot open local file for reading. | |
const int | CANNOT_WRITE_LOCAL_FILE |
CAnnot write to local file. | |
const int | INVALID_COMMAND |
Received invalid command from server. | |
const int | MEM_ALLOC_ERR |
Memory allocation error. | |
const int | FILE_ERROR |
Remote file error. | |
const int | EARLIER |
Earlier date/time. | |
const int | LATER |
Later date/time. | |
const int | SAME |
Same date/time. | |
Private Attributes | |
int | remotePort |
CAVERNnet_extendedTcpClient_c | client |
CAVERNnet_perfMonitor_c | pmonitor |
|
Compare time/date1 with time/date2.
|
|
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.
|
|
Properly delete the perfDaemonClient after sendStats is done |
|
Retrieve a local file's date and time stamp. Date/Time is in GMT.
|
|
Retrieve a remote file's date and time stamp. Date/Time is in GMT.
|
|
Initialize sendStats - provide the IP of the perfDaemon and an optional port number to connect to. This should be done initially before using the sendStats API.
|
|
This logs performance statistics in a file. The user opens a file and passes the file pointer with this function and results of monitoring are written into the logfile.
|
|
Sends the performance statistics to a remote perfdaemon -for further analysis of the monitored data - the initSendStats API should be called first, before calling a sendStats (In order to connect to the perfdaemon initially)
|
|
Displays the resultant statistics instantaneously in the netlogger format - this should be typically done after a read/write is done a network. Also, it should be noted that a showStats call should be made at the end of atleast one send and receive for two-way information (the same applies for logStats and sendStats)
|
|
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.
|