public void CheckReceiveAgainException() { using (var router = new RouterSocket()) { router.BindRandomPort("tcp://127.0.0.1"); router.Receive(SendReceiveOptions.DontWait); } }
static void Main(string[] args) { using (NetMQContext context = NetMQContext.Create()) using (RouterSocket router = context.CreateRouterSocket()) { router.Bind("tcp://*:33333"); while (true) { byte[] identity = router.Receive(); string message = router.ReceiveString(); Console.WriteLine(message); router.SendMore(identity).Send(message); } } }