Programming client server applications - SC12 @CHIP-RTOS V1.10IPC@CHIP Documentation Index Programming client/server applications Here is a short description for programming client/server applications with the TCP/IP API. The most used methods for programming TCP/IP applications are client or server applications. The term server applies to any process or program that offers a service that can be reached over the network. Servers accept request that arrive over the network, perform their service, and return the result to the requester. An example for the simplest service is the standard echo server application. The server echoes the received data over the network back to the requester. A process becomes a client when its sends a request to a server and waits for an answer. the client-server model is the standard model for interprocess communication. A TCP/IP stack provides two different methods for client-server connections: 1.UDP protocol: This protocol realizes connectionless communication between a client and server, based on sending and receiving of single datagrams. TCP/IP API calls for an UDP client:
TCP/IP API calls for an UDP server:
2.TCP protocol:
TCP/IP API calls for a TCP server: We provide several examples for programming client/server applications: Note: All program examples built with C-API-functions use the files TCPIP.C, TCPIP.H and TCPIPAPI.H.
End of document |