Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.IO;
- using NetMQ;
- using System.Threading;
- namespace Publisher
- {
- class Program
- {
- static void Main(string[] args)
- {
- byte[] array1 = new byte[1920 * 1080 * 4];
- int msgNumber = 1;
- using (var context = NetMQContext.Create())
- {
- using (var publisher = context.CreatePublisherSocket())
- {
- publisher.Options.SendHighWatermark = 1;
- publisher.Bind("tcp://*:5555");
- while (true)
- {
- publisher.SendMore("TopicTest");
- publisher.Send(array1);
- msgNumber++;
- Console.WriteLine(msgNumber.ToString());
- Thread.Sleep(25);
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment