TCP.c File Reference


Detailed Description

Transmission Control Protocol (TCP) Communications Layer.

Module for Microchip TCP/IP Stack

See the Microchip License Agreement for more details.

Todo:
Change from AppConfig structure to sIPConfig

Modifications to the original file
  • Search for "MODIFIX" in the code!
  • Removed preprocessor macro STACK_USE_TCP as always defined.


Functions

TCP_SOCKET TCPOpen (DWORD dwRemoteHost, BYTE vRemoteHostType, WORD wPort, BYTE vSocketPurpose)
 Opens a TCP socket for listening or as a client.
BOOL TCPWasReset (TCP_SOCKET hTCP)
 Self-clearing semaphore inidicating socket reset.
BOOL TCPIsConnected (TCP_SOCKET hTCP)
 Determines if a socket has an established connection.
void TCPDisconnect (TCP_SOCKET hTCP)
 Disconnects an open socket.
void TCPFlush (TCP_SOCKET hTCP)
 Immediately transmits all pending TX data.
WORD TCPIsPutReady (TCP_SOCKET hTCP)
 Determines how much free space is available in the TCP TX buffer.
BOOL TCPPut (TCP_SOCKET hTCP, BYTE byte)
 Writes a single byte to a TCP socket.
WORD TCPPutArray (TCP_SOCKET hTCP, BYTE *data, WORD len)
 Writes an array from RAM to a TCP socket.
BYTE * TCPPutString (TCP_SOCKET hTCP, BYTE *data)
 Writes a null-terminated string from RAM to a TCP socket.
WORD TCPIsGetReady (TCP_SOCKET hTCP)
 Determines how many bytes can be read from the TCP RX buffer.
BOOL TCPGet (TCP_SOCKET hTCP, BYTE *byte)
 Retrieves a single byte to a TCP socket.
WORD TCPFindEx (TCP_SOCKET hTCP, BYTE cFind, WORD wStart, WORD wSearchLen, BOOL bTextCompare)
 Searches for a byte in the TCP RX buffer.


Generated on Fri Mar 29 10:34:28 2013 for Netzer by  doxygen 1.5.5