Receiving Multicast with Cancel and Error-Checking


Start the transfer with the Start receive button. Cancel with the Cancel button. Start the receive file operation before starting the send file operation.

This demo receives any file, and store it in the directory specified by the %TEMP% environment variable. When the transfer is completed, a completion message appears.

A message appears when the transfer starts and when the transfer is completed. An error message appears when the transfer request is made, when the transfer starts and is completed, and if the transfer is cancelled.

Note The IP address and port must match the address and port of the server you want to listen to. This sample uses the following parameters:

This demo contains a function (ReturnError) that takes a number corresponding to an HRESULT error code and returns a corresponding error message string.