Datasheet
Flyport Wi-Fi and Ethernet Programmer's guide framework 2.3 (rev 1.0) www.openpicus.com
TCP Protocol
TCP, Transmission Control Protocol, is a packet oriented protocol. It can be used to transmit and
receive packets of data through the network between server and client.
• To use this kind of transmission, server and client should establish a connection. Since the
connection between server and client consumes network resources (exchanging protocol
service packets), it should be closed after the transmission is finished.
• In every TCP connection there is a Server and a Client, and Flyport can play both roles.
• The TCP/IP transmission is “full-duplex” capable, and all the packets sent arrive in source
order and “at most once”.
• By using acknowledgement, timeouts and checksums, the TCP protocol can check the
integrity of every packet and know if a packet arrived at the destination.
• At every host, multiple connections can be opened with the using of different ports, which
we will call the “TCP_SOCKETS”.
TCP Functions
Every TCP connection is identified by its TCP_SOCKET.
First of all one or more TCP_SOCKETs must be created:
TCP_SOCKET myTCPSocket = INVALID_SOCKET;
Every TCP_SOCKET needed by application must be properly sized in the IDE Wizard to optimize
Flyport memory. It is best to use the least possible both number of sockets and buffer lengths.
39










