#include "vfer_rcp.h"
Go to the source code of this file.
Data Structures | |
| struct | rcpd_info | 
| info structure used for parsing the command line arguments and options of test_rcpd  More... | |
Functions | |
| int | main (int argc, char **argv) | 
| int | parse_opts (int argc, char **argv, FILE **testing_out) | 
| void | print_help (char *prog, int verbose) | 
| int | rcpd_connect () | 
| void | sig_handler (int sig) | 
Variables | |
| vfer_fd | connect_skt | 
| int | fd | 
| rcpd_info | info | 
| vfer_fd | listen_skt | 
| char * | optarg | 
| int | opterr | 
| int | optind | 
| int | optopt | 
| int | sig_mark = 0 | 
Definition in file vfer_rcpd.c.
| int main | ( | int | argc, | |
| char ** | argv | |||
| ) | 
main
Definition at line 219 of file vfer_rcpd.c.
| int parse_opts | ( | int | argc, | |
| char ** | argv, | |||
| FILE ** | testing_out | |||
| ) | 
Parses the command line arguments and options to main()
This function will print descriptive errors it finds to stdout
| argc | is the argc argument to main | |
| argv | is the argv argument to main | |
| testing_out | is a FILE** type that is either set to NULL here or to 'stdout' depending on verbosity args | 
| void print_help | ( | char * | prog, | |
| int | verbose | |||
| ) | 
Prints a verbose or a non-verbose usage page
| prog | program name to use in the help page | |
| verbose | controls whether the page is verbose(1) or not(0) | 
| int rcpd_connect | ( | ) | 
This function makes preliminary api calls to vfer lib to create a listening socket
0 on success
Definition at line 180 of file vfer_rcpd.c.
| void sig_handler | ( | int | sig | ) | 
This function is a catcher of SIGINT signal, installed in main()
Definition at line 212 of file vfer_rcpd.c.
Definition at line 45 of file vfer_rcpd.c.
| int fd | 
Definition at line 48 of file vfer_rcpd.c.
Definition at line 47 of file vfer_rcpd.c.
Definition at line 46 of file vfer_rcpd.c.
| char* optarg | 
| int opterr | 
| int optind | 
| int optopt | 
| int sig_mark = 0 | 
Definition at line 49 of file vfer_rcpd.c.
 1.4.7