Receiving Files


To receive a file, the following steps must be followed:

  1. If possible, start the receive operation before the sender starts sending. If the receiver starts after the sender has begun sending a group of files, the receiver will receive the current file and all subsequent files. If only one file is being sent and the receive operation starts in the middle of the transfer, no file will be received.
  2. Start a receive operation with the FtsStartFileTransferReceive method on the computer on which you want to receive the file(s). This is called "listening."
    • For multicast transfers, use a multicast address.
    • For unicast transfers, specify one of the host computer's local addresses. If no local address is specified, the first local address on the host computer will be used as a default.
  3. Wait until the file is sent by the sender.
  4. The receiver can cancel a file transfer with FtsCancelFileTransferReceive.
  5. Status and progress of the transfer can be read through events and properties during the file transfer and at the transfer completion. See Notifications for information about status and notifications.

© 1997 Microsoft Corporation. All rights reserved. Terms of Use.