Mercurial > pidgin
comparison src/protocols/rendezvous/mdns.c @ 10549:8bc7ba019e96
[gaim-migrate @ 11919]
This should make rendezvous compile again. It's back to being able
to somewhat sign on and see other people. Still nowhere near being
able to message.
I think I want to work on messaging, then maybe come back and look
into using a third party lib or maybe just an external mDNS server
for presence.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Thu, 27 Jan 2005 05:28:08 +0000 |
parents | 782c1b564906 |
children | 913ec44675c3 |
comparison
equal
deleted
inserted
replaced
10548:1596ade00664 | 10549:8bc7ba019e96 |
---|---|
275 } | 275 } |
276 | 276 |
277 return ret; | 277 return ret; |
278 } | 278 } |
279 | 279 |
280 #if 0 | |
281 ResourceRecord * | 280 ResourceRecord * |
282 mdns_copy_rr(const ResourceRecord *rr) | 281 mdns_copy_rr(const ResourceRecord *rr) |
283 { | 282 { |
284 ResourceRecord *ret; | 283 ResourceRecord *ret; |
285 | 284 |
295 ret->rdata = mdns_copy_rr_rdata(rr->type, rr->rdata, rr->rdlength); | 294 ret->rdata = mdns_copy_rr_rdata(rr->type, rr->rdata, rr->rdlength); |
296 | 295 |
297 return ret; | 296 return ret; |
298 } | 297 } |
299 | 298 |
299 #if 0 | |
300 static GSList * | 300 static GSList * |
301 mdns_copy_rrs(const GSList *rrs) | 301 mdns_copy_rrs(const GSList *rrs) |
302 { | 302 { |
303 GSList *ret = NULL; | 303 GSList *ret = NULL; |
304 GSList *cur; | 304 GSList *cur; |
365 addr.sin_family = AF_INET; | 365 addr.sin_family = AF_INET; |
366 addr.sin_port = htons(5353); | 366 addr.sin_port = htons(5353); |
367 addr.sin_addr.s_addr = INADDR_ANY; | 367 addr.sin_addr.s_addr = INADDR_ANY; |
368 if (bind(fd, (struct sockaddr *)&addr, sizeof(struct sockaddr_in)) < 0) { | 368 if (bind(fd, (struct sockaddr *)&addr, sizeof(struct sockaddr_in)) < 0) { |
369 gaim_debug_error("mdns", "Unable to bind socket to interface.\n"); | 369 gaim_debug_error("mdns", "Unable to bind socket to interface.\n"); |
370 gaim_debug_error("mdns", "%s\n", strerror(errno)); | |
370 close(fd); | 371 close(fd); |
371 return -1; | 372 return -1; |
372 } | 373 } |
373 | 374 |
374 /* Ensure loopback is enabled (it should be enabled by default, but let's be sure) */ | 375 /* Ensure loopback is enabled (it should be enabled by default, but let's be sure) */ |