Getting Started with ADSP-BF537 EZ-KIT Lite
A-5
Creating a TCP/IP Application
4. Host Acknowledges Client
When the host application gets a connection attempt from the client
application, it accepts the incoming call and obtains the socket address
from the client. At this point, the handshaking between the client and
host is established and data transfer begins.
5. Inter-Process Communications
The host and client applications are free to send and receive data using the
socket API calls. For more information on socket APIs, refer to Exercise 2
.
6. Close Connection
When the applications complete the data exchange, the sockets must be
closed. The client application closes the socket it has created. The host, on
the other hand, close its own socket and the socket created by the connect
call.
illustrates the flow of control for the host and client
applications.
L
In both applications, a TCP/IP stack must be created before any
socket communications can take place. The TCP/IP libraries pro-
vide calls to create and start the stack.
www.BDTIC.com/ADI