W5100E01-AVR WIZnet, W5100E01-AVR Datasheet - Page 90

no-image

W5100E01-AVR

Manufacturer Part Number
W5100E01-AVR
Description
Development Boards & Kits - AVR W5100 EVAL BOARD BASED ON AVR
Manufacturer
WIZnet
Datasheet

Specifications of W5100E01-AVR

Rohs
yes
Product
Development Boards
Tool Is For Evaluation Of
ATMEGA128
Core
AVR8
Interface Type
LAN, RS-232
Operating Supply Voltage
5 V
Data Bus Width
8 bit
dns_query() initializes the buffer that is needed for DNS inter-working and creates QNAME of Question
Section based on Query Type ‘BYNAME’, and ‘BYIP.’ If the Query Type is ‘BYNAME,’ that is, when querying
the Domain Name with IP Address, Domain Name can be used as QNAME without transformation.
When Query Type is ‘BYIP,’ that is, when querying the Domain Name with IP Address, change IP Address to
IP Address String and QNAME is used after adding “in-addr.arpa” to the changed IP Address String. After
the creation of QNAME, UDP Socket is created for DNS inter-working and DNS Request Message is created
by calling dns_make_query(). If DNS Request Message is created successfully DNS Request Message is
sent to DNS Name Server through UDP Socket. After sending DNS Request Message it receives DNS
Response Message or waits until the waiting time is expired.
If DNS response message is received from DNS name server during the waiting time, it analyzes received
DNS response message using dns_parse_response(). dns_query() returns IP Address or Domain Name
depending on Query Type.
<Fig 3.39> is dns_query()’s process map
Get the network information of EVB
Communicate with the DNS Server
dns_query(s,&hostip,BYNAME)
NetConf.dns == 0xFFFFFFFF
getSocket(SOCK_CLOSED)
SOCKET s
get_netconf(&NetConf)
Declare Local Variables
Find a Free channel
NetConf.dns == 0
gethostbyname()
RETURN 1
Success?
Found?
||
Y
N
Y
N
© Copyright 2007 WIZnet Co., Inc. All rights reserved.
N
<Fig 3.38: gethostbyaddr() & gethostbyname()>
Y
with the Server
communicate
RETURN 0
Not found a Free
Fail to
DNS Server IP
Addess is not
RETURN 0
Configued
Socket
Get the network information of EVB
Communicate with the DNS Server
NetConf.dns == 0xFFFFFFFF
getSocket(SOCK_CLOSED)
dns_query(s,&hostip,BYIP)
SOCKET s
get_netconf(&NetConf)
Declare Local Variables
Find a Free channel
NetConf.dns == 0
gethostbyaddr()
RETURN 1
Success?
Found?
||
N
Y
Y
N
N
Y
with the Server
communicate
RETURN 0
DNS Server IP
Fail to
Addess is not
Free Socket
Not found a
RETURN 0
Configued
80

Related parts for W5100E01-AVR