Thanks Doron,
I started out with just one thread to run 1 subscriber receive with 2 publishers sending to the same address with the start of the message stating which one the message was for to render that image on that control for that subscriber and the other for the other subscriber. this was when i first noticed they were both receiving the same images.
i then moved to separating them to 2 subscribers each on their own thread and the same result.
here is the setup for the subscriber:
receiverSock1.Options.ReceiveBuffer =
10240;
receiverSock1.Options.MulticastHops =
1;
receiverSock1.Options.MulticastRate =
400;
receiverSock1.Options.MulticastRecoveryInterval =
TimeSpan.
FromMilliseconds(
100);
receiverSock1.Options.IPv4Only =
true;
//receiverSock1.Options.TcpKeepalive = true;
receiverSock1.
Connect(
"pgm://239.255.60.101:1000");
//receiverSock1.Subscribe("2");
and the setup for the publishers:
sendSock1.Options.ReceiveBuffer =
10240;
sendSock1.Options.MulticastHops =
1;
sendSock1.Options.MulticastRate =
400;
sendSock1.Options.MulticastRecoveryInterval =
TimeSpan.
FromMilliseconds(
100);
sendSock1.Options.IPv4Only =
true;
//sendSock1.Options.TcpKeepalive = true; sendSock1.
Bind(
"pgm://239.255.60.101:1000");
each publisher is sending like this:
sendSock.SendMoreFrames("Peter").SendFrame(encodedImage);
and the other:
sendSock.SendMoreFrames("Mary").SendFrame(encodedImage);
the subscriber is seeing that 1 message is for Peter and another is for Mary but the encodedImages attached to each send is being received the same for both of them. i'm using VP8 encoding/decoding and it only sends images that have changed inbetween P frames so if Peter was the last to change on his screen, both see the previous image plus the change is overlayed and visa verca.
hope that helps to find why they are both receiving the same thing?