Available in LEADTOOLS Imaging Pro, Vector, Document, and Medical Imaging toolkits. |
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 Peer-to-Peer DLL. |
L_InetStartUp | |
|
Set the computer to act as a server and listen for connection requests |
|
--------------------------------------------------> |
| |
<-------------------------------------------------- |
||
|
The server must override the L_InetSetCommandCallback function so it will be notified of commands received from the client. The client must override the L_InetSetResponseCallback function so it will be notified of responses received from the server. |
|
--------------------------------------------------> |
||
<-------------------------------------------------- |
||
--------------------------------------------------> |
||
<-------------------------------------------------- |
L_InetSendRsp | |
--------------------------------------------------> |
||
<-------------------------------------------------- |
||
The client has finished sending all the commands and closes the connection to the server. |
|