mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-19 18:03:50 +00:00
Problem: is_ipv6_available needs context to work on Windows
Solution: call the function after the zmq_ctx has been created, not before, so that the relevant Windows system calls have been setup.
This commit is contained in:
parent
f486176741
commit
0002824fc0
@ -22,9 +22,9 @@
|
|||||||
int main (void)
|
int main (void)
|
||||||
{
|
{
|
||||||
setup_test_environment();
|
setup_test_environment();
|
||||||
int ipv6 = is_ipv6_available ();
|
|
||||||
void *ctx = zmq_ctx_new ();
|
void *ctx = zmq_ctx_new ();
|
||||||
assert (ctx);
|
assert (ctx);
|
||||||
|
int ipv6 = is_ipv6_available ();
|
||||||
|
|
||||||
/* Address wildcard, IPv6 disabled */
|
/* Address wildcard, IPv6 disabled */
|
||||||
void *sb = zmq_socket (ctx, ZMQ_REP);
|
void *sb = zmq_socket (ctx, ZMQ_REP);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user