mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
remove c++ comments from Jan Kneschke
svn:r373
This commit is contained in:
parent
10267216a6
commit
7c6df310c9
2
evdns.h
2
evdns.h
@ -364,4 +364,4 @@ int evdns_server_request_drop(struct evdns_server_request *req);
|
|||||||
struct sockaddr;
|
struct sockaddr;
|
||||||
int evdns_server_request_get_requesting_addr(struct evdns_server_request *_req, struct sockaddr *sa, int addr_len);
|
int evdns_server_request_get_requesting_addr(struct evdns_server_request *_req, struct sockaddr *sa, int addr_len);
|
||||||
|
|
||||||
#endif // !EVENTDNS_H
|
#endif /* !EVENTDNS_H */
|
||||||
|
@ -179,7 +179,7 @@ dns_server_request_cb(struct evdns_server_request *req, void *data)
|
|||||||
const char TEST_ARPA[] = "11.11.168.192.in-addr.arpa";
|
const char TEST_ARPA[] = "11.11.168.192.in-addr.arpa";
|
||||||
for (i = 0; i < req->nquestions; ++i) {
|
for (i = 0; i < req->nquestions; ++i) {
|
||||||
struct in_addr ans;
|
struct in_addr ans;
|
||||||
ans.s_addr = htonl(0xc0a80b0bUL); // 192.168.11.11
|
ans.s_addr = htonl(0xc0a80b0bUL); /* 192.168.11.11 */
|
||||||
if (req->questions[i]->type == EVDNS_TYPE_A &&
|
if (req->questions[i]->type == EVDNS_TYPE_A &&
|
||||||
req->questions[i]->class == EVDNS_CLASS_INET &&
|
req->questions[i]->class == EVDNS_CLASS_INET &&
|
||||||
!strcmp(req->questions[i]->name, "zz.example.com")) {
|
!strcmp(req->questions[i]->name, "zz.example.com")) {
|
||||||
@ -325,7 +325,7 @@ dns_server()
|
|||||||
dns_server_gethostbyname_cb, NULL);
|
dns_server_gethostbyname_cb, NULL);
|
||||||
evdns_resolve_ipv6("zz.example.com", DNS_QUERY_NO_SEARCH,
|
evdns_resolve_ipv6("zz.example.com", DNS_QUERY_NO_SEARCH,
|
||||||
dns_server_gethostbyname_cb, NULL);
|
dns_server_gethostbyname_cb, NULL);
|
||||||
resolve_addr.s_addr = htonl(0xc0a80b0bUL); // 192.168.11.11
|
resolve_addr.s_addr = htonl(0xc0a80b0bUL); /* 192.168.11.11 */
|
||||||
evdns_resolve_reverse(&resolve_addr, 0,
|
evdns_resolve_reverse(&resolve_addr, 0,
|
||||||
dns_server_gethostbyname_cb, NULL);
|
dns_server_gethostbyname_cb, NULL);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user