Skip to content

xiwan/netmqproxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

netmqproxy

This is just an enhancement for proxy

based on source of https://github.com/zeromq/netmq/blob/master/src/NetMQ/Proxy.cs

How to use:

1. define your own: 
  public Action<IReceivingSocket, IOutgoingSocket> proxyBetweenAction;
  
2. pass it to constructor:

  var frontSocket = new SubscriberSocket(string.Format("@tcp://{0}", frontAddress));
  var backSocket = new PublisherSocket(string.Format("@tcp://{0}", backAddress));
  ((SubscriberSocket)frontSocket).SubscribeToAnyTopic();
  proxy1 = new NetmqProxy(frontSocket, backSocket, proxyBetweenAction);

3. that is...

About

This is just an enhancement for proxy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages