Webserver+3d print
dns_client.c File Reference
DNS client (Domain Name System) More...
Go to the source code of this file.
Functions | |
error_t | dnsResolve (NetInterface *interface, const char_t *name, HostType type, IpAddr *ipAddr) |
Resolve a host name using DNS. | |
error_t | dnsSendQuery (DnsCacheEntry *entry) |
Send a DNS query message. | |
void | dnsProcessResponse (NetInterface *interface, const IpPseudoHeader *pseudoHeader, const UdpHeader *udpHeader, const NetBuffer *buffer, size_t offset, void *params) |
Process incoming DNS response message. |
Detailed Description
DNS client (Domain Name System)
License
Copyright (C) 2010-2017 Oryx Embedded SARL. All rights reserved.
This file is part of CycloneTCP Open.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- Version:
- 1.7.6
Definition in file dns_client.c.
Function Documentation
void dnsProcessResponse | ( | NetInterface * | interface, |
const IpPseudoHeader * | pseudoHeader, | ||
const UdpHeader * | udpHeader, | ||
const NetBuffer * | buffer, | ||
size_t | offset, | ||
void * | params | ||
) |
Process incoming DNS response message.
- Parameters:
-
[in] interface Underlying network interface [in] pseudoHeader UDP pseudo header [in] udpHeader UDP header [in] buffer Multi-part buffer containing the incoming DNS message [in] offset Offset to the first byte of the DNS message [in] params Callback function parameter (not used)
Definition at line 357 of file dns_client.c.
error_t dnsResolve | ( | NetInterface * | interface, |
const char_t * | name, | ||
HostType | type, | ||
IpAddr * | ipAddr | ||
) |
Resolve a host name using DNS.
- Parameters:
-
[in] interface Underlying network interface [in] name Name of the host to be resolved [in] type Host type (IPv4 or IPv6) [out] ipAddr IP address corresponding to the specified host name
Definition at line 52 of file dns_client.c.
error_t dnsSendQuery | ( | DnsCacheEntry * | entry ) |
Send a DNS query message.
- Parameters:
-
[in] entry Pointer to a valid DNS cache entry
- Returns:
- Error code
Definition at line 213 of file dns_client.c.
Generated on Tue Jul 12 2022 17:10:19 by
