transfer-client.cc File Reference

a small program to transfer sieved relations to the server More...

#include <cstdlib>
#include "unix_buffer.H"
#include <fstream>
#include <string>
#include "qsieve-fwd.H"
#include <getopt.h>

Include dependency graph for transfer-client.cc:

Go to the source code of this file.

Functions

void usage (void)
int main (const int argc, char *const argv[])

Variables

const char *const option_string = "+hgpvi:f:"
static struct option long_options []


Detailed Description

a small program to transfer sieved relations to the server

If the sieving is done offline by a file-client, the sieved relations are stored in files. These data need to be transmitted to the server somehow. This is done by the transfer-client, which is implemented here.

Definition in file transfer-client.cc.


Function Documentation

int main ( const int  argc,
char *const   argv[] 
)

Definition at line 50 of file transfer-client.cc.

References cerr, communication_stream, count(), cout, endl(), exit(), flush(), std::basic_ifstream< _CharT, _Traits >::get(), std::basic_ifstream< _CharT, _Traits >::getline(), long_options, option_string, std::basic_ifstream< _CharT, _Traits >::peek(), std::basic_ofstream< _CharT, _Traits >::put(), QsieveLogon, server_port, and usage().

Here is the call graph for this function:

void usage ( void   ) 

Definition at line 37 of file transfer-client.cc.

References cout, and endl().

Referenced by main().

Here is the call graph for this function:


Variable Documentation

struct option long_options[] [static]

Initial value:

{
  { "help", 0, 0, 'h' },
  { "get", 0, 0, 'g' },
  { "put", 0, 0, 'p' },
  { "verbose", 0, 0, 'v' },
  { "interval", 1, 0, 'i' },
  { "file", 1, 0, 'f' },
  { 0, 0, 0, 0 }
}

Definition at line 26 of file transfer-client.cc.

Referenced by main().

const char* const option_string = "+hgpvi:f:"

Definition at line 25 of file transfer-client.cc.

Referenced by main().


Generated on Wed Nov 7 23:30:37 2007 for Qsieve by  doxygen 1.5.4