Sending Commands and Responses
(Internet only) LEADTOOLS provides a number of methods and events 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 command is received from a remote computer, the InetReceiveCmd event is triggered locally. The supported command methods include the following:
InetSendAttachBitmapCmd method
InetSendGetMagGlassDataCmd method
The computer that receives the command should then send a response to the computer that sent the command. The supported response methods include the following:
InetSendAttachBitmapRsp method
InetSendGetMagGlassDataRsp method
When a response is received from a remote computer, the InetReceiveRsp event is triggered.
While the InetSendLoadCmd method, the InetSendLoadRsp method, the InetSendSaveCmd method, the InetSendSaveRsp method, etc. provide standard image processing commands and responses, the InetSendCmd method and InetSendRsp method provide a means of creating user-defined commands and responses. For a diagram of a client server set-up for sending commands and responses, refer to Client-Server Diagram: Sending Commands and Responses.
The InetSendGetMagGlassDataCmd and InetSendGetMagGlassDataRsp methods can be used to update a magnifying glass bitmap. When transferring information across the Internet to update a magnifying glass bitmap, use the InetGetMagGlassData method to retrieve the required array of colors.