linux ipv4 multicast

james via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Sep 18 19:55:06 PDT 2014


I just started doing D networking today, so I may just be doing
something wrong / stupid.... but I can not find the "ip_mreq"
struct anywhere.

I ended up just making my own in my module

struct ip_mreq
{
           in_addr imr_multiaddr;
           in_addr imr_interface;
}

And then I was able to continue and successfully process
multicast.

The ipv6 things seem to be available.

I was hoping it would be picked up by import std.c.linux.socket;

In /usr/include/dmd , running
       find . -type f -exec grep -Hi "ip_mreq" {} \;
returns no results.

Am I doing something wrong or is this just an oversight somehow?

DMD v2.065


More information about the Digitalmars-d-learn mailing list