A Client Server Diagram: Sending Commands and Responses
The diagram given below shows a simple example of a Client - Server connection and a series of function calls used to send commands and responses.
| Client | Action | Server | 
| Initialize the LEADTOOLS Internet DLL. | LInet::StartUp | |
| 
 | Set the computer to act as a server and listen for connection requests | |
| --------------------------------------------------> | ||
| <-------------------------------------------------- | ||
| 
 | The server must override the LInet::CommandCallBack function so it will be notified of commands received from the client. The client must override the LInet::ResponseCallBack function so it will be notified of responses received from the server. | 
 | 
| --------------------------------------------------> | LInet::CommandCallBack | |
| <-------------------------------------------------- | LInet::SendLoadRsp | |
| --------------------------------------------------> | LInet::CommandCallBack | |
| <-------------------------------------------------- | LInet::SendRsp | |
| --------------------------------------------------> | ||
| LInet::ResponseCallBack | <-------------------------------------------------- | LInet::SendSaveRsp | 
| The client has finished sending all the commands and closes the connection to the server. |