0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-27 15:41:05 +08:00

Moved tests off 5555 (conflict with Eclipse)

Signed-off-by: Pieter Hintjens <ph@imatix.com>
This commit is contained in:
Pieter Hintjens 2011-05-02 18:59:55 +02:00 committed by Martin Sustrik
parent eb9bc1b064
commit e78cc47b18
3 changed files with 6 additions and 6 deletions

View File

@ -28,12 +28,12 @@ int main (int argc, char *argv [])
void *sb = zmq_socket (ctx, ZMQ_PAIR); void *sb = zmq_socket (ctx, ZMQ_PAIR);
assert (sb); 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); assert (rc == 0);
void *sc = zmq_socket (ctx, ZMQ_PAIR); void *sc = zmq_socket (ctx, ZMQ_PAIR);
assert (sc); 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); assert (rc == 0);
bounce (sb, sc); bounce (sb, sc);

View File

@ -28,12 +28,12 @@ int main (int argc, char *argv [])
void *sb = zmq_socket (ctx, ZMQ_REP); void *sb = zmq_socket (ctx, ZMQ_REP);
assert (sb); 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); assert (rc == 0);
void *sc = zmq_socket (ctx, ZMQ_REQ); void *sc = zmq_socket (ctx, ZMQ_REQ);
assert (sc); 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); assert (rc == 0);
bounce (sb, sc); bounce (sb, sc);

View File

@ -31,7 +31,7 @@ extern "C"
{ {
int rc; 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); assert (rc == 0);
// Start closing the socket while the connecting process is underway. // 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); s1 = zmq_socket (ctx, ZMQ_REP);
assert (s1); 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); assert (rc == 0);
for (i = 0; i != THREAD_COUNT; i++) { for (i = 0; i != THREAD_COUNT; i++) {