void SocketSendFile(int socket, string fname)
Sends a file to the specified socket. It's recommended you give the client a good heads-up message before you just bombard them with a file. Note that this ties up the server the whole time the file's being sent, so be careful how you use it.
int myfile = "dennis.png"; SocketSendString(i, "DOWNLOAD "+myfile); // Heads up, dude! We're totally sending you a file. SocketSendFile(i, myfile); // Now download it!
There are no talkbacks on this documentation page yet. Post the first?
Doc Nav |
Your docs |