We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parenta68fabf commite960b9cCopy full SHA for e960b9c
contrib/pg_dtm/sockhub/sockhub_main.c
@@ -14,10 +14,7 @@ int main(int argc, char* argv[])
14
if (argv[i][0]=='-') {
15
switch (argv[i][1]) {
16
case'h':
17
-params.host=argv[++i];
18
-continue;
19
-case'p':
20
-params.port=atoi(argv[++i]);
+ShubParamsSetHosts(¶ms,argv[++i]);
21
continue;
22
case'f':
23
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"
+"\t-h HOST:PORT\tremote address\n"
41
"\t-f FILE\tunix socket file name\n"
42
"\t-d DELAY\tdelay for waiting income requests (milliseconds)\n"
43
"\t-b SIZE\tbuffer size\n"
@@ -47,7 +43,7 @@ int main(int argc, char* argv[])
47
48
44
return1;
49
45
}
50
-if (params.host==NULL||params.file==NULL||i!=argc) {
46
+if (params.leader==NULL||params.file==NULL||i!=argc) {
51
gotoUsage;
52
53