Skip to content

Commit

Permalink
Update push-pull.md
Browse files Browse the repository at this point in the history
update to match with the zmq examples
  • Loading branch information
apolloid authored Oct 31, 2023
1 parent 4c853dc commit 16e4573
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/push-pull.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,14 @@ namespace Ventilator
// Sends batch of tasks to workers via that socket
Console.WriteLine("====== VENTILATOR ======");
using (var sender = new PushSocket("@tcp://*:5557"))
using (var sink = new PushSocket(">tcp://localhost:5558"))
{
Console.WriteLine("Press enter when worker are ready");
Console.ReadLine();
//the first message it "0" and signals start of batch
//see the Sink.csproj Program.cs file for where this is used
Console.WriteLine("Sending start of batch to Sink");
sender.SendFrame("0");
sink.SendFrame("0");
Console.WriteLine("Sending tasks to workers");
//initialise random number generator
Random rand = new Random(0);
Expand Down

0 comments on commit 16e4573

Please sign in to comment.