You must be logged in to do that.

SocketSendFile

SocketSendFile
void SocketSendFile(int socket, string fname)

Documentation

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.

Example Usage

int myfile = "dennis.png";
SocketSendString(i, "DOWNLOAD "+myfile); // Heads up, dude! We're totally sending you a file.
SocketSendFile(i, myfile); // Now download it!
Talkback

There are no talkbacks on this documentation page yet. Post the first?

Post a new comment?

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.