Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use PUSH/PULL for throughput tests.

  • Loading branch information...
commit 3e4cc0acf13e8a3bb88df387969b290b07fa63d5 1 parent 70d0066
@jgoz jgoz authored
View
3  src/ZeroMQ.Perf.ThrLocal/Program.cs
@@ -29,9 +29,8 @@ internal static int Main(string[] args)
// Initialize 0MQ infrastructure
using (ZmqContext ctx = ZmqContext.Create())
- using (ZmqSocket skt = ctx.CreateSocket(SocketType.SUB))
+ using (ZmqSocket skt = ctx.CreateSocket(SocketType.PULL))
{
- skt.SubscribeAll();
skt.Bind(address);
// Wait for the first message.
View
2  src/ZeroMQ.Perf.ThrRemote/Program.cs
@@ -27,7 +27,7 @@ internal static int Main(string[] args)
// Initialize 0MQ infrastructure
using (ZmqContext ctx = ZmqContext.Create())
- using (ZmqSocket skt = ctx.CreateSocket(SocketType.PUB))
+ using (ZmqSocket skt = ctx.CreateSocket(SocketType.PUSH))
{
skt.Connect(address);
Please sign in to comment.
Something went wrong with that request. Please try again.