src/vsl_rcp.c File Reference

VSL filetransfer client. More...

#include "vsl_rcp.h"
#include "vsl_api.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include "vsl.h"
#include <pwd.h>
#include <strings.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <fcntl.h>
#include <signal.h>
#include "vfer.h"

Go to the source code of this file.

Data Structures

struct  vsl_rcp_info
 structure used for parsing the command line arguments and options of test_rcp More...

Functions

int main (int argc, char **argv)
int parse_opts (int argc, char **argv, vsl_rcp_info *t)
void print_help (char *prog, int verbose)
void sig_handler (int sig)


Detailed Description

VSL filetransfer client.

Author:
Nikolaus Rath

Definition in file vsl_rcp.c.


Function Documentation

int main ( int  argc,
char **  argv 
)

main

Definition at line 259 of file vsl_rcp.c.

int parse_opts ( int  argc,
char **  argv,
vsl_rcp_info info 
)

Parses the command line arguments and options to main()

This function will print descriptive errors it finds to stderr

Parameters:
[in] argc is the argc argument to main
[in] argv is the argv argument to main
[out] info structure to store parsed arguments in
Returns:
0 on success -1 on error -2 if help option was specified

Definition at line 88 of file vsl_rcp.c.

void print_help ( char *  prog,
int  verbose 
)

Prints a verbose or a non-verbose usage page

Parameters:
prog program name to use in the help page
verbose controls whether the page is verbose(1) or not(0)

void sig_handler ( int  sig  ) 

This function is a catcher of SIGINT signal, installed in main()

Definition at line 252 of file vsl_rcp.c.


Generated on Tue Aug 8 16:07:22 2006 for VFER by  doxygen 1.4.7