Skip to content

Commit

Permalink
Working on pirate patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
hintjens committed Feb 27, 2011
2 parents 002d268 + 359f680 commit 4f41571
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions examples/C/piclient.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ int main (void)
// We send a request, then we work to get a reply
char request [10];
sprintf (request, "%d", ++sequence);
// Wait one second in between requests
sleep (1);
s_send (client, request);

int expect_reply = 1;
Expand Down
1 change: 1 addition & 0 deletions examples/C/piserver.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ int main (void)
sleep (5);
}
printf ("I: normal request (%s)\n", request);
sleep (1);
s_send (server, request);
free (request);
}
Expand Down
1 change: 0 additions & 1 deletion examples/C/piworker1.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ int main (void)
char identity [10];
sprintf (identity, "%04X-%04X", randof (0x10000), randof (0x10000));
zmq_setsockopt (worker, ZMQ_IDENTITY, identity, strlen (identity));

zmq_connect (worker, "tcp://localhost:5556");

// Tell queue we're ready for work
Expand Down

0 comments on commit 4f41571

Please sign in to comment.