// Collection of code snippets by Arne Vajhøj // (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) using System; using System.Threading; using NetMQ; using NetMQ.Sockets; public class Srv6 { private const string TOPIC = "1234"; public static void Main(string[] args) { using (PublisherSocket s = new PublisherSocket()) { s.Bind("tcp://*:10006"); int count = 0; while(true) { count++; string respmsg = String.Format("{0} C# server ({1})", TOPIC, count); s.SendFrame(respmsg); Thread.Sleep(3000); } } } }