mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-11 16:40:17 +00:00
Remove extra error message
PUBLISHED_FROM=8b7fcfc1bc32ff9ff38e2904ddb730c83bf9fae4
This commit is contained in:
1 parent
53ed8502c9
commit
e406de7e00
48 files changed
+87
-87
No files matched your search
@@ -6,10 +6,10 @@ signature: |
|
||||
int mg_dns_copy_questions(struct mbuf *io, struct mg_dns_message *msg);
|
||||
---
|
||||
|
||||
Appends already encoded questions from an existing message.
|
||||
Append already encoded questions from an existing message.
|
||||
|
||||
This is useful when generating a DNS reply message which includes
|
||||
all question records.
|
||||
|
||||
Returns the number of appened bytes.
|
||||
Return number of appened bytes.
|
||||
|
||||
@@ -8,11 +8,11 @@ signature: |
|
||||
size_t rlen);
|
||||
---
|
||||
|
||||
Encodes and appends a DNS resource record to an IO buffer.
|
||||
Encode and append a DNS resource record to an IO buffer.
|
||||
|
||||
The record metadata is taken from the `rr` parameter, while the name and data
|
||||
are taken from the parameters, encoded in the appropriate format depending on
|
||||
record type and stored in the IO buffer. The encoded values might contain
|
||||
record type, and stored in the IO buffer. The encoded values might contain
|
||||
offsets within the IO buffer. It's thus important that the IO buffer doesn't
|
||||
get trimmed while a sequence of records are encoded while preparing a DNS
|
||||
*reply.
|
||||
@@ -21,5 +21,5 @@ This function doesn't update the `name` and `rdata` pointers in the `rr`
|
||||
*struct
|
||||
because they might be invalidated as soon as the IO buffer grows again.
|
||||
|
||||
Returns the number of bytes appened or -1 in case of error.
|
||||
Return the number of bytes appened or -1 in case of error.
|
||||
|
||||
@@ -7,7 +7,7 @@ signature: |
|
||||
struct mg_dns_message *msg);
|
||||
---
|
||||
|
||||
Inserts a DNS header to an IO buffer.
|
||||
Insert a DNS header to an IO buffer.
|
||||
|
||||
Returns the number of bytes inserted.
|
||||
Return number of bytes inserted.
|
||||
|
||||
@@ -8,7 +8,7 @@ signature: |
|
||||
size_t data_len);
|
||||
---
|
||||
|
||||
Parses the record data from a DNS resource record.
|
||||
Parse the record data from a DNS resource record.
|
||||
|
||||
- A: struct in_addr *ina
|
||||
- AAAA: struct in6_addr *ina
|
||||
|
||||
@@ -7,15 +7,15 @@ signature: |
|
||||
char *dst, int dst_len);
|
||||
---
|
||||
|
||||
Uncompresses a DNS compressed name.
|
||||
Uncompress a DNS compressed name.
|
||||
|
||||
The containing DNS message is required because of the compressed encoding
|
||||
The containing dns message is required because the compressed encoding
|
||||
and reference suffixes present elsewhere in the packet.
|
||||
|
||||
If the name is less than `dst_len` characters long, the remainder
|
||||
of `dst` is terminated with `\0` characters. Otherwise, `dst` is not
|
||||
If name is less than `dst_len` characters long, the remainder
|
||||
of `dst` is terminated with `\0' characters. Otherwise, `dst` is not
|
||||
*terminated.
|
||||
|
||||
If `dst_len` is 0 `dst` can be NULL.
|
||||
Returns the uncompressed name length.
|
||||
Return the uncompressed name length.
|
||||
|
||||
@@ -7,5 +7,5 @@ signature: |
|
||||
int query_type);
|
||||
---
|
||||
|
||||
Sends a DNS query to the remote end.
|
||||
Send a DNS query to the remote end.
|
||||
|
||||
@@ -6,11 +6,11 @@ signature: |
|
||||
void mg_set_protocol_dns(struct mg_connection *nc);
|
||||
---
|
||||
|
||||
Attaches a built-in DNS event handler to the given listening connection.
|
||||
Attach built-in DNS event handler to the given listening connection.
|
||||
|
||||
The DNS event handler parses the incoming UDP packets, treating them as DNS
|
||||
requests. If an incoming packet gets successfully parsed by the DNS event
|
||||
handler, a user event handler will receive an `MG_DNS_REQUEST` event, with
|
||||
DNS event handler parses incoming UDP packets, treating them as DNS
|
||||
requests. If incoming packet gets successfully parsed by the DNS event
|
||||
handler, a user event handler will receive `MG_DNS_REQUEST` event, with
|
||||
`ev_data` pointing to the parsed `struct mg_dns_message`.
|
||||
|
||||
See
|
||||
|
||||
Reference in new issue
Block a user