comparison Messaging/Client/UI/MainWindow.xaml.cs @ 34:874e51b94623

ZeroMq uses different style of address for client and server
author adminsh@apollo
date Thu, 22 Mar 2012 08:42:03 +0000
parents 7d9de5746f18
children
comparison
equal deleted inserted replaced
33:f3a0641c1586 34:874e51b94623
75 Task.Factory.StartNew(() => 75 Task.Factory.StartNew(() =>
76 { 76 {
77 using (var ctx = new ZMQ.Context(1)) 77 using (var ctx = new ZMQ.Context(1))
78 { 78 {
79 var socket = ctx.Socket(ZMQ.REQ); 79 var socket = ctx.Socket(ZMQ.REQ);
80 socket.Connect("tcp://localhost:5555"); 80 socket.Connect(Settings.ZeroMqClientAddress);
81 81
82 for (var i = 0; i < MessageCount; i++) 82 for (var i = 0; i < MessageCount; i++)
83 { 83 {
84 socket.Send(Encoding.ASCII.GetBytes("Hello")); 84 socket.Send(Encoding.ASCII.GetBytes("Hello"));
85 85