mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-10 07:56:09 +00:00
Move away from port 8080 which is occupied on some boxes
This commit is contained in:
parent
b49aa7a65d
commit
f36a49de6d
@ -173,12 +173,12 @@ test_stream_to_stream (void)
|
|||||||
|
|
||||||
void *server = zmq_socket (ctx, ZMQ_STREAM);
|
void *server = zmq_socket (ctx, ZMQ_STREAM);
|
||||||
assert (server);
|
assert (server);
|
||||||
rc = zmq_bind (server, "tcp://127.0.0.1:8080");
|
rc = zmq_bind (server, "tcp://127.0.0.1:9080");
|
||||||
assert (rc == 0);
|
assert (rc == 0);
|
||||||
|
|
||||||
void *client = zmq_socket (ctx, ZMQ_STREAM);
|
void *client = zmq_socket (ctx, ZMQ_STREAM);
|
||||||
assert (client);
|
assert (client);
|
||||||
rc = zmq_connect (client, "tcp://localhost:8080");
|
rc = zmq_connect (client, "tcp://localhost:9080");
|
||||||
assert (rc == 0);
|
assert (rc == 0);
|
||||||
// It would be less surprising to get an empty message instead
|
// It would be less surprising to get an empty message instead
|
||||||
// of having to fetch the identity like this [PH 2013/06/27]
|
// of having to fetch the identity like this [PH 2013/06/27]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user