0

I want to build an application which wants to recive data from several multicast groups (up to 1.000!) Is this possible with the setsockopt function (IP_ADD_SOURCE_MEMBERSHIP)? Or is there a system limit?

Is there another way to do it? Or do I have to use more than one socket?

Thanks!

1 Answers1

0

I've found something on this Microsoft site: INFO: Header and Library Requirement When Set/Get Socket Options at the IPPROTO_IP Level

There exists a define

#define IP_MAX_MEMBERSHIPS 20 /* per socket; must fit in one mbuf */

The mbuf struct has a maximum size of 108 bytes.

TCP/IP Illustrated: Vol. 2: The Implementation

  • Another explanation I found here: [TCP/IP Illustrated](http://books.google.de/books?id=6H9AxyFd0v0C&pg=PA1076&lpg=PA1076&dq=IP_MAX_MEMBERSHIPS%20header&source=bl#v=onepage&q=IP_MAX_MEMBERSHIPS%20header&f=false) – Homer Simpson Apr 16 '13 at 09:57