Available in LEADTOOLS Imaging Pro, Vector, Document, and Medical Imaging toolkits. |
Sending Commands and Responses
LEADTOOLS provides a number of functions that allow you to send commands and responses between a local and a remote computer. This provides a means of using a "super computer" to store and process large numbers of images, while using a smaller, remote computer to send commands indicating which process to perform and which image to use.
When a computer receives a command, the INETCOMMANDCALLBACK callback function is called. This callback should be set by calling L_InetSetCommandCallback. The computer that receives the command should then send a response to the computer that sent the command. The supported response functions include the following:
To receive responses, the computer that sent the original command must register a INETRESPONSECALLBACK by calling L_InetSetResponseCallback.
While the L_InetSendLoadCmd, L_InetSendLoadRsp, L_InetSendSaveCmd, L_InetSendSaveRsp, etc. provide standard image processing commands and responses, the L_InetSendCmd and L_InetSendRsp functions provide a means of creating user-defined commands and responses. These commands and responses may require sending extra data, in the form of a packet, along with the command or the response. For a diagram of a client server set-up for sending commands and responses, refer to A Client-Server Diagram: Sending Commands and Responses.