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. |
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::SendRsp | |
--------------------------------------------------> |
||
<-------------------------------------------------- |
||
The client has finished sending all the commands and closes the connection to the server. |