File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -14,10 +14,7 @@ int main(int argc, char* argv[])
14
14
if (argv [i ][0 ] == '-' ) {
15
15
switch (argv [i ][1 ]) {
16
16
case 'h' :
17
- params .host = argv [++ i ];
18
- continue ;
19
- case 'p' :
20
- params .port = atoi (argv [++ i ]);
17
+ ShubParamsSetHosts (& params , argv [++ i ]);
21
18
continue ;
22
19
case 'f' :
23
20
params .file = argv [++ i ];
@@ -36,8 +33,7 @@ int main(int argc, char* argv[])
36
33
Usage :
37
34
fprintf (stderr , "sockhub: combine several local unix socket connections into one inet socket\n"
38
35
"Options:\n"
39
- "\t-h HOST\tremote host name\n"
40
- "\t-p PORT\tremote port\n"
36
+ "\t-h HOST:PORT\tremote address\n"
41
37
"\t-f FILE\tunix socket file name\n"
42
38
"\t-d DELAY\tdelay for waiting income requests (milliseconds)\n"
43
39
"\t-b SIZE\tbuffer size\n"
@@ -47,7 +43,7 @@ int main(int argc, char* argv[])
47
43
48
44
return 1 ;
49
45
}
50
- if (params .host == NULL || params .file == NULL || i != argc ) {
46
+ if (params .leader == NULL || params .file == NULL || i != argc ) {
51
47
goto Usage ;
52
48
}
53
49
You can’t perform that action at this time.
0 commit comments