// Collection of code snippets by Arne Vajhøj // (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) using System; using NetMQ; using NetMQ.Sockets; public class Srv6 { public static void Main(string[] args) { using (ResponseSocket s = new ResponseSocket()) { s.Bind("tcp://*:10006"); while(true) { string reqmsg = s.ReceiveFrameString(); string respmsg = reqmsg + " - C# server"; s.SendFrame(respmsg); } } } }