Definition at line 2889 of file mlogger.cxx.
◆ WriterFtp()
| WriterFtp::WriterFtp |
( |
LOG_CHN * |
log_chn | ) |
|
|
inline |
Definition at line 2892 of file mlogger.cxx.
2893 {
2895 printf(
"WriterFtp: path [%s]\n", log_chn->
path.c_str());
2896
2898 }
◆ ~WriterFtp()
| WriterFtp::~WriterFtp |
( |
| ) |
|
|
inline |
Definition at line 2900 of file mlogger.cxx.
2901 {
2903 printf("WriterFtp: destructor\n");
2904
2908 }
2909 }
int ftp_bye(FTP_CON *con)
◆ wr_close()
| int WriterFtp::wr_close |
( |
LOG_CHN * |
log_chn, |
|
|
int |
run_number |
|
) |
| |
|
inlinevirtual |
Implements WriterInterface.
Definition at line 2959 of file mlogger.cxx.
2960 {
2962 printf(
"WriterFtp: close path [%s]\n", log_chn->
path.c_str());
2963
2964 assert(
fFtp != NULL);
2965
2969
2971
2973 }
int ftp_close(FTP_CON *con)
◆ wr_get_chain()
| std::string WriterFtp::wr_get_chain |
( |
| ) |
|
|
inlinevirtual |
◆ wr_get_file_ext()
| std::string WriterFtp::wr_get_file_ext |
( |
| ) |
|
|
inlinevirtual |
◆ wr_open()
| int WriterFtp::wr_open |
( |
LOG_CHN * |
log_chn, |
|
|
int |
run_number |
|
) |
| |
|
inlinevirtual |
Implements WriterInterface.
Definition at line 2911 of file mlogger.cxx.
2912 {
2915
2917 printf(
"WriterFtp: open path [%s]\n", log_chn->
path.c_str());
2918
2919 assert(
fFtp == NULL);
2920
2923 cm_msg(
MERROR,
"WriterFtp::wr_open",
"Cannot open FTP connection \'%s\', ftp_open() status %d, errno %d (%s)", log_chn->
path.c_str(),
status, errno, strerror(errno));
2925 }
2926
2928
2930 }
INT cm_msg(INT message_type, const char *filename, INT line, const char *routine, const char *format,...)
INT ftp_open(const char *xdestination, FTP_CON **con)
◆ wr_write()
| int WriterFtp::wr_write |
( |
LOG_CHN * |
log_chn, |
|
|
const void * |
data, |
|
|
const int |
size |
|
) |
| |
|
inlinevirtual |
Implements WriterInterface.
Definition at line 2932 of file mlogger.cxx.
2933 {
2935 printf(
"WriterFtp: write path [%s], size %d\n", log_chn->
path.c_str(), size);
2936
2937 if (size == 0)
2939
2942 }
2943
2945
2947
2948 if (wr > 0)
2950
2951 if (wr != size) {
2952 cm_msg(
MERROR,
"WriterFtp::wr_write",
"Cannot write to FTP connection \'%s\', ftp_send(%d) returned %d, errno %d (%s)", log_chn->
path.c_str(), size, wr, errno, strerror(errno));
2954 }
2955
2957 }
int ftp_send(int sock, const char *buffer, int n_bytes_to_write)
◆ fFtp
The documentation for this class was generated from the following file: