W5100E01-AVR WIZnet, W5100E01-AVR Datasheet - Page 61

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
3.2.6.2.
Loopback TCP Client
At Loopback TCP Client program, EVB B/D works in client mode and AX1, PC test program works in server
mode. EVB B/D tries to connect to AX1 which is waiting as the server, if the connection is successful EVB
B/D receives data stream through TCP channel and then EVB B/D sends back the received data stream to
AX1.
Loopback TCP client program is created with loopback_tcpc() and <Fig 3.15> is processing procedure of
loopback_tcpc().
If the client socket is in SOCK_CLOSED status, loopback_tcpc() calls socket() with the elements of
SOCK_STREAM, any Port Number, and Option Flag to create TCP client socket.
In creating socket here, any port number is used for get_system_any_port(). This is because connection may
be failed if it tries to connect to the same server with same port number. After successfully creating the
socket, call connect() with the elements of the client socket to connect to the AX1 server.
connect() makes the socket status into SOCK_SYNSENT and keeps the status as SOCK_SYNSENT until it
receives the authorization for connection from the server. If the connection is successful the socket status is
changed from SOCK_SYNSENT to SOCK_ESTABLISHED. In SOCK_ESTABLISHED status, the operation
is same as explained in loopback_tcps().
51
© Copyright 2007 WIZnet Co., Inc. All rights reserved.

Related parts for W5100E01-AVR