Receiving Files
To receive a file:
-
Start the receive operation before the sender starts sending to insure that all files will be transferred. 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, the file will be received.
-
Start a receive operation with the FtsCancelFileTransferReceive 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.
-
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 at the transfer completion. See Notifications for information about status and notifications.
© 1996-1998 Microsoft Corporation. All rights reserved.