W5100E01-AVR WIZnet, W5100E01-AVR Datasheet - Page 64

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
If the udp socket is in SOCK_CLOSED status, socket() is called using SOCK_DGRAM, Port Number, and
Option Flag as the elements to create the UDP socket.
UDP communication, as opposed to TCP, is a datagram communication without the requirement of
connection process. So, direct data communication is possible immediately after socket creation. After
creation of UDP socket, the udp socket status will be changed from SOCK_CLOSED to SOCK_UDP.
Here, not like TCP for data communication which uses send() and recv(), sendto() and recvfrom() are used.
This is because TCP is 1-to-1 communication method of which destination is known but UDP is 1-to-many
communication without connection procedure. sendto() sends data to specific port of specific destination that
is sent as an element, recvfrom() is used to receive the incoming data from temporary port. Destination
information from recvfrom() is informed to user using destip and destport which are sent as elements.
In loopback_udp(), there is no example of using close(), but in case that the UDP communication is not
needed anymore, close() can be always called to close the udp socket.
3.2.6.4.
Web Server program is a TCP server program using HTTP protocol which is used on TCP protocol. Before
building Web server program, message structure of HTTP protocol that is transmitted between Web server
and Web client(Web browser) are needed to be understood.
void loopback_udp(u_char ch)
uint8 getSn_SR(SOCKET s)
uint16 getSn_RX_RSR(SOCKET
s)
u_char
u_char
u_char flag)
u_int sendto(SOCKET s,
const u_char * buf, u_int len,
u_char * addr, u_int port)
u_int recvfrom(SOCKET s,
u_char * buf, u_int len, u_char *
addr, u_int * port)
void close(SOCKET s)
Web Server
Function Name
protocol,
socket(SOCKET
© Copyright 2007 WIZnet Co., Inc. All rights reserved.
<Table 3-25: Reference Functions in loopback_udp()>
u_int
port,
s,
Loopback udp program
Gets the socket status
size of data transmittable, and received
data
Creates related socket as TCP/UDP/IP.
Sends data to specific port of specific
destination
Sends
destination related socket
Close related socket
data
Description
to
related socket
any
port
of
any
app/loopback.c
iinChip/w5100.c
iinChip/w5100.c
iinChip/socket.c
iinChip/socket.c
iinChip/socket.c
iinChip/socket.c
Location
54

Related parts for W5100E01-AVR