version 1.18, 2003/09/24 20:21:40 |
version 1.19, 2003/09/25 09:45:46 |
|
|
argv = margv; |
argv = margv; |
} |
} |
if ((argc < 2) || (argc > 3)) { |
if ((argc < 2) || (argc > 3)) { |
printf("usage: %s host-name [port]\n", argv[0]); |
printf("usage: %s [host] [port]\n", argv[0]); |
return; |
return; |
} |
} |
if (inet_aton(argv[1], &peeraddr.sin_addr) != 0) { |
if (inet_aton(argv[1], &peeraddr.sin_addr) != 0) { |
|
|
static void |
static void |
putusage(char *s) |
putusage(char *s) |
{ |
{ |
printf("usage: %s file ... host:target, or\n", s); |
printf("usage: %s file [[host:]remotename]\n", s); |
printf(" %s file ... target (when already connected)\n", s); |
printf(" %s file1 file2 ... fileN [[host:]remote-directory]\n", s); |
} |
} |
|
|
/* |
/* |
|
|
static void |
static void |
getusage(char *s) |
getusage(char *s) |
{ |
{ |
printf("usage: %s host:file host:file ... file, or\n", s); |
printf("usage: %s [host:]file [localname]\n", s); |
printf(" %s file file ... file if connected\n", s); |
printf(" %s [host1:]file1 [host2:]file2 ... [hostN:]fileN\n", s); |
} |
} |
|
|
int rexmtval = TIMEOUT; |
int rexmtval = TIMEOUT; |