-void serveconnection(int net) ;
-void set_peername(int net,char *clientname) ;
+void serveconnection(int net);
+void set_peername(int net,char *clientname);
int authorized_client(char *name)
/* 0 - authorization refused, 1 - OK
int authorized_client(char *name)
/* 0 - authorization refused, 1 - OK
" if port is set to 0, stdin is used (for running from inetd)\n"
" if file_to_export contains '%%s', it is substituted with IP\n"
" address of machine trying to connect\n" );
" if port is set to 0, stdin is used (for running from inetd)\n"
" if file_to_export contains '%%s', it is substituted with IP\n"
" address of machine trying to connect\n" );
- case 'c': flags |=F_COPYONWRITE ;
- break ;
+ case 'c': flags |=F_COPYONWRITE;
+ break;
+ case 'a':
+ if (i+1<argc) {
+ timeout = atoi(argv[i+1]);
+ i++;
+ } else {
+ fprintf(stderr, "timeout requires argument\n");
+ exit(1);
+ }
readit(net, &request, sizeof(request));
request.from = ntohll(request.from);
request.type = ntohl(request.type);
readit(net, &request, sizeof(request));
request.from = ntohll(request.from);
request.type = ntohl(request.type);