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. |
||
|
|
Set the computer to act as a server and listen for connection requests |
|
|
--------------------------------------------> |
||
|
<-------------------------------------------- |
||
|
The server sets an INETCOMMANDCALLBACK function using L_InetSetCommandCallback so it will be notified of commands received from the client. The client sets an INETRESPONSECALLBACK function using L_InetSetResponseCallbackL_InetSetResponseCallback so it will be notified of responses received from the server. |
||
|
--------------------------------------------> |
||
|
<------------------------------------------- |
||
|
--------------------------------------------> |
||
|
<------------------------------------------- |
||
|
-------------------------------------------> |
||
|
<------------------------------------------- |
||
|
The client has finished sending all the commands and closes the connection to the server. |
|