mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-26 23:01:04 +08:00
Moved tests off 5555 (conflict with Eclipse)
Signed-off-by: Pieter Hintjens <ph@imatix.com>
This commit is contained in:
parent
eb9bc1b064
commit
e78cc47b18
@ -28,12 +28,12 @@ int main (int argc, char *argv [])
|
||||
|
||||
void *sb = zmq_socket (ctx, ZMQ_PAIR);
|
||||
assert (sb);
|
||||
int rc = zmq_bind (sb, "tcp://127.0.0.1:5555");
|
||||
int rc = zmq_bind (sb, "tcp://127.0.0.1:5560");
|
||||
assert (rc == 0);
|
||||
|
||||
void *sc = zmq_socket (ctx, ZMQ_PAIR);
|
||||
assert (sc);
|
||||
rc = zmq_connect (sc, "tcp://127.0.0.1:5555");
|
||||
rc = zmq_connect (sc, "tcp://127.0.0.1:5560");
|
||||
assert (rc == 0);
|
||||
|
||||
bounce (sb, sc);
|
||||
|
@ -28,12 +28,12 @@ int main (int argc, char *argv [])
|
||||
|
||||
void *sb = zmq_socket (ctx, ZMQ_REP);
|
||||
assert (sb);
|
||||
int rc = zmq_bind (sb, "tcp://127.0.0.1:5555");
|
||||
int rc = zmq_bind (sb, "tcp://127.0.0.1:5560");
|
||||
assert (rc == 0);
|
||||
|
||||
void *sc = zmq_socket (ctx, ZMQ_REQ);
|
||||
assert (sc);
|
||||
rc = zmq_connect (sc, "tcp://127.0.0.1:5555");
|
||||
rc = zmq_connect (sc, "tcp://127.0.0.1:5560");
|
||||
assert (rc == 0);
|
||||
|
||||
bounce (sb, sc);
|
||||
|
@ -31,7 +31,7 @@ extern "C"
|
||||
{
|
||||
int rc;
|
||||
|
||||
rc = zmq_connect (s, "tcp://127.0.0.1:5555");
|
||||
rc = zmq_connect (s, "tcp://127.0.0.1:5560");
|
||||
assert (rc == 0);
|
||||
|
||||
// Start closing the socket while the connecting process is underway.
|
||||
@ -61,7 +61,7 @@ int main (int argc, char *argv [])
|
||||
s1 = zmq_socket (ctx, ZMQ_REP);
|
||||
assert (s1);
|
||||
|
||||
rc = zmq_bind (s1, "tcp://127.0.0.1:5555");
|
||||
rc = zmq_bind (s1, "tcp://127.0.0.1:5560");
|
||||
assert (rc == 0);
|
||||
|
||||
for (i = 0; i != THREAD_COUNT; i++) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user