AN2836 Freescale Semiconductor / Motorola, AN2836 Datasheet - Page 13

no-image

AN2836

Manufacturer Part Number
AN2836
Description
Web Server Development with MC9S12NE64 and OpenTCP
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
OpenTCP TCP/IP Stack API
Table 5
including a brief description for each function. For complete documentation of the OpenTCP API, please
reference the OpenTCP user guide.
Freescale Semiconductor
Functions
Functions
Functions
Functions
HTTP API
UDP API
TCP API
Support
Other
provides a more detailed look at OpenTCP by reviewing some basic API OpenTCP functions
udp_init();
INT8 udp_releasesocket (INT8)
INT8 udp_open (INT8, UINT16)
INT8 udp_getsocket (UINT8,
INT16 udp_send (INT8, UINT32,
tcp_init();
tcp_poll();
INT8 tcp_listen (INT8, UINT16)
INT8 tcp_connect (INT8, UINT32,
INT16 tcp_send (INT8, UINT8 *,
INT8 tcp_getsocket (UINT8, UINT8,
https_init();
https_run();
EtherInit();
arp_init();
INT32(*)(INT8, UINT8, UINT32,
UINT16, UINT16, UINT16), UINT8)
UINT16, UINT8 *, UINT16, UINT16)
UINT16, UINT16)
UINT16, UINT16)
UINT16, INT32(*)(INT8, UINT8,
UINT32, UINT32))
Web Server Development with MC9S12NE64 and OpenTCP, Rev. 0
Table 5. Selected OpenTCP API Functions
Function
Initializes UDP socket pool to get everything into a
Releases a given socket.
Opens a given UDP socket for communication.
Allocates a free socket in UDP socket pool.
Sends data to remote host using given UDP
Initializes TCP socket pool to get everything into a
Checks all TCP sockets and performs various
Sets TCP socket to listen on a given port.
Initializes connection establishment towards
Sends user data over TCP using given TCP
Allocates a free socket in TCP socket pool.
Initializes HTTP server variables; it should be
Is main thread of HTTP server program and
Configures and initializes the MC9S12NE64
Initializes ARP cache table so that ARP allocates
known state at startup and should be called
before any other UDP function.
socket.
known state. It should be called before any other
TCP function. Timers are also allocated for each
socket and everything is brought to a predefined
state.
actions if timeouts occur. What kind of action is
performed is defined by the state of the TCP
socket.
remote IP&port.
socket.
called before the HTTP server application is
used to set operating parameters.
should be called periodically from main loop.
EMAC and EPHY.
and initializes a timer for its use.
Description
OpenTCP TCP/IP Stack Overview
13

Related parts for AN2836