jablonka.czprosek.czf

discover

Subversion Repositories:
[/] [trunk/] [discover.c] - Diff between revs 1 and 3

Show entire file Ignore whitespace

Rev 1 Rev 3
Line 59... Line 59...
   
int responses = 0; int responses = 0;
   
struct ifaddrs *ifa; struct ifaddrs *ifa;
   
  memset(&hints, 0, sizeof(hints));
hints.ai_protocol = IPPROTO_UDP; hints.ai_protocol = IPPROTO_UDP;
hints.ai_socktype = SOCK_DGRAM; hints.ai_socktype = SOCK_DGRAM;
hints.ai_flags = AI_CANONNAME; hints.ai_flags = AI_CANONNAME;
hints.ai_family = PF_UNSPEC; hints.ai_family = PF_UNSPEC;
hints.ai_addrlen = 0;  
hints.ai_addr = 0;  
hints.ai_canonname = 0;  
   
if (argc < 2) { if (argc < 2) {
dest = "233.89.188.1"; dest = "233.89.188.1";
multicast = 1; multicast = 1;
} else { } else {

Powered by WebSVN 2.2.1