Receiving Files
There are three ways of receiving a file:
- Before the sender begins sending files, start a receive operation to ensure that all files are transferred. If the receive operation starts after the sender has begun transmitting a group of files, the receiver receives the current file and all subsequent files. If the receive operation starts in the middle of the transfer and only one file is being sent, the receiver can receive that file.
- 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 local addresses on the host computer. If no local address is specified, the first local address on the host computer is used as the default.
- Wait until the file is sent by the sender.
The receiver can cancel a file transfer with the FtsCancelFileTransferReceive method.
Status and progress of the transfer can be read through events and properties during the file transfer and when it is finished. For information about status and notifications, see Notifications.
© 1996-1999 Microsoft Corporation. All rights reserved.