[zeromq-dev] Does ZMQ "Over Send" Using OpenPGM

Steven McCoy steven.mccoy at miru.hk
Wed Oct 20 11:57:53 CEST 2010


On 20 October 2010 17:51, Martin Sustrik <sustrik at 250bpm.com> wrote:

> On 10/20/2010 11:46 AM, Steven McCoy wrote:
>
>  OpenPGM already does that filtering but the ZeroMQ wrapper is using the
>> user provided port for both UDP encapslation and data-destination.
>>
>
> A-ha. I'm starting to see the poblem. So how are the two ports set up now?
> Both (PGM & UDP) use the same number? Or maybe one of them is fixed?
>
>
Encapsulation:

const int encapsulation_port = port_number;
if (!pgm_setsockopt (sock, IPPROTO_PGM, PGM_UDP_ENCAP_UCAST_PORT,
&encapsulation_port, sizeof (encapsulation_port)) ||
    !pgm_setsockopt (sock, IPPROTO_PGM, PGM_UDP_ENCAP_MCAST_PORT,
&encapsulation_port, sizeof (encapsulation_port)))

Data ports:

addr.sa_port = port_number; /* data destination port */
addr.sa_addr.sport = DEFAULT_DATA_SOURCE_PORT;

So, both the same with encapsulation enabled.

-- 
Steve-o
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20101020/d795205a/attachment.htm>


More information about the zeromq-dev mailing list