We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e11705 commit b4d47e4Copy full SHA for b4d47e4
src/zoscdump.c
@@ -44,8 +44,11 @@ determine_socket( const char *bind)
44
if (zrex_eq(rex, bind, "^(.+)://.*") )
45
{
46
const char *transport = zrex_hit(rex, 1);
47
+
48
+ if ( streq(transport, "ipc") )
49
+ retsock = zsock_new_pull( bind );
50
#ifdef ZMQ_DGRAM
- if ( streq(transport, "udp") )
51
+ else if ( streq(transport, "udp") )
52
retsock = zsock_new_dgram(bind);
53
#endif
54
#ifdef ZMQ_STREAM
@@ -56,9 +59,6 @@ determine_socket( const char *bind)
56
59
}
57
60
58
61
- else if ( streq(transport, "ipc") )
- retsock = zsock_new_pull( bind );
-
62
else
63
zsys_error("Not a valid transport in %s", transport);
64
0 commit comments