Mercurial > pidgin.yaz
comparison src/protocols/rendezvous/mdns_cache.c @ 8840:01c3db200c8f
[gaim-migrate @ 9607]
Some good rendezvous fixes. Now if I could just find out why iTunes
complains that it can't access my mp3 server when I sign on with Gaim...
And 0 is a valid file descriptor.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Wed, 28 Apr 2004 04:38:12 +0000 |
parents | beb7be215db3 |
children | ad3633f92f91 |
comparison
equal
deleted
inserted
replaced
8839:ebbc39e0050d | 8840:01c3db200c8f |
---|---|
82 | 82 |
83 void | 83 void |
84 mdns_cache_remove_all() | 84 mdns_cache_remove_all() |
85 { | 85 { |
86 mdns_free_rrs(rrs); | 86 mdns_free_rrs(rrs); |
87 rrs = NULL; | |
87 } | 88 } |
88 | 89 |
89 void | 90 void |
90 mdns_cache_respond(int fd, const Question *q) | 91 mdns_cache_respond(int fd, const Question *q) |
91 { | 92 { |
95 g_return_if_fail(q != NULL); | 96 g_return_if_fail(q != NULL); |
96 printf("query for q->type=%d, q->name=%s\n", q->type, q->name); | 97 printf("query for q->type=%d, q->name=%s\n", q->type, q->name); |
97 | 98 |
98 for (slist = rrs; slist != NULL; slist = slist->next) { | 99 for (slist = rrs; slist != NULL; slist = slist->next) { |
99 cur = slist->data; | 100 cur = slist->data; |
100 if ((q->type == cur->type) && (!strcmp(q->name, cur->name))) { | 101 if (((q->type == RENDEZVOUS_RRTYPE_ALL) || (q->type == cur->type)) && (!strcmp(q->name, cur->name))) { |
101 printf("responding to cur->type=%d, cur->name=%s\n", cur->type, cur->name); | 102 printf("responding to cur->type=%d, cur->name=%s\n", cur->type, cur->name); |
102 //mdns_send_rr(fd, cur); | 103 mdns_send_rr(fd, cur); |
103 } | 104 } |
104 } | 105 } |
105 } | 106 } |