A Transferring Data and Sound

While a network connection is open, you can transfer data and sound between local and remote computers. There are two ways to send data, with LEADTOOLS header information and without LEADTOOLS header information (raw). To send data in any of the LEADTOOLS supported image file formats with LEADTOOLS' header information, use LInet::SendData. You can enable auto processing for the receiving computer by calling LInet::EnableAutoProcess to allow LEADTOOLS to check the received data and automatically load it into the appropriate data structure if LEADTOOLS' headers are found. To send data without LEADTOOLS's header information, use LInet::SendRawData. Transferred data will be received by the remote computer in the INETCALLBACK function. If auto process is disabled, the data must be manually read and processed using LInet::ReadData. To send sound data, use LInet::SendSound.

To abort a data transfer use LInet::ClearQueue. Use LInet::GetQueueSize to find out how much data is currently in the LEADTOOLS internal network send queue. When the Peer-to-Peer session is finished, call LInet::ShutDown to shut down the LEADTOOLS Peer-to-Peer DLL and free any memory associated with the Peer-to-Peer DLL.