# HG changeset patch # User adminsh@apollo # Date 1332405723 0 # Node ID 874e51b94623a87293c9b354f49322f053457592 # Parent f3a0641c158625da461fb1b10b37858c6217060e ZeroMq uses different style of address for client and server diff -r f3a0641c1586 -r 874e51b94623 Messaging/Client/UI/MainWindow.xaml.cs --- a/Messaging/Client/UI/MainWindow.xaml.cs Thu Mar 22 08:11:42 2012 +0000 +++ b/Messaging/Client/UI/MainWindow.xaml.cs Thu Mar 22 08:42:03 2012 +0000 @@ -77,7 +77,7 @@ using (var ctx = new ZMQ.Context(1)) { var socket = ctx.Socket(ZMQ.REQ); - socket.Connect("tcp://localhost:5555"); + socket.Connect(Settings.ZeroMqClientAddress); for (var i = 0; i < MessageCount; i++) { diff -r f3a0641c1586 -r 874e51b94623 Messaging/Common/Settings.cs --- a/Messaging/Common/Settings.cs Thu Mar 22 08:11:42 2012 +0000 +++ b/Messaging/Common/Settings.cs Thu Mar 22 08:42:03 2012 +0000 @@ -5,6 +5,7 @@ public const string MsmqQueueName = @".\private$\Queue#1"; public const int RabbitPortNumber = 5672; public const string RabbitQueueName = "Queue#2"; - public const string ZeroMqAddress = "tcp://*:5555"; + public const string ZeroMqServerAddress = "tcp://*:5555"; + public const string ZeroMqClientAddress = "tcp://localhost:5555"; } } diff -r f3a0641c1586 -r 874e51b94623 Messaging/Server/UI/MainWindowViewModel.cs --- a/Messaging/Server/UI/MainWindowViewModel.cs Thu Mar 22 08:11:42 2012 +0000 +++ b/Messaging/Server/UI/MainWindowViewModel.cs Thu Mar 22 08:42:03 2012 +0000 @@ -50,7 +50,7 @@ { InitMsmqEndPoint(Settings.MsmqQueueName); InitRabbitEndPoint(Settings.RabbitPortNumber, Settings.RabbitQueueName); - InitZeroMqEndPoint(Settings.ZeroMqAddress); + InitZeroMqEndPoint(Settings.ZeroMqServerAddress); CloseCommand = new RelayCommand(CloseCommandExecute); }