Guest User

Untitled

a guest
Jun 24th, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. client.InitiateFileTransfer(recipient, "path_to_file_to_send", "description of the file", FileTransferCallback);
  2.  
  3. static void FileTransferCallback(bool accepted, FileTransfer transfer)
  4. {
  5. Console.WriteLine(transfer.To + " has " + (accepted == true ? "accepted " : "rejected ") + "the transfer of " + transfer.Name + ".");
  6. }
Add Comment
Please, Sign In to add comment