![]() |
• Message Manager | ||||||||||||||
|
API Links
Developer Links
|
Player::RequestFileDefined in:
Attempts to initiate a file transfer from a player.
C4Messages.hPrototype
Parameters
Description
A call to RequestFile causes a message to be sent to a player to request the file whose name is given by the name parameter. The RequestFile function returns immediately and the Message Manager listens for a response to the request.If the request is accepted, the file transfer is initiated and the player will call its completion procedure when the transfer is complete. If the request is denied for some reason (for instance, the file does not exist), then an error message is registered and the player's completion procedure is invoked. The Completable base class of the Player class is used to signal the completion of a file transfer or that an error arose during a file transfer. The completion procedure has the prototype
player is the player from whom the file was requested, and data is the user-defined pointer passed to the Completable::SetCompletionProc function. The implementation of this completion procedure should first call Player::GetFileTransferResult to determine whether the file was successfully transferred or whether an error occurred. This function returns one of the following file transfer result codes.
See Also
|