// 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 Cli { private static void Test(string addr) { using (PushSocket s = new PushSocket()) { s.Connect(addr); for(int i = 0; i < 3; i++) { string reqmsg = "C# Client"; s.SendFrame(reqmsg); } Thread.Sleep(1000); } } public static void Main(string[] args) { Test("tcp://localhost:10001"); Test("tcp://localhost:10002"); Test("tcp://localhost:10003"); Test("tcp://localhost:10004"); Test("tcp://localhost:10005"); Test("tcp://localhost:10006"); } }