Is there a way for one application to send a file to another application through MooClick or something
And if so, how do you do it?
I have a good online game up and running but I would like to put in file sending/receving
Thanks very much,
Zapper
n/a
Pete Nattress Cheesy Bits img src/uploads/sccheesegif
Registered 23/09/2002
Points 4811
19th February, 2004 at 15:40:08 -
this is how i'd do it:
using the FTP object, you could have one application upload it to some FTP space. then use moo to send the location of the file to the other machine, which could then use the FTP object to download the file (deleting from the server if necessary).
I'd use MooSock to set up a server for the person sending the file, and send a message (via MooClick) to the guy you want to send to with your IP (get that from the MooSock object). He connects to the sender and the sender sends the file.
I'd be inclined to use MOO, though it does require a lot more work. Simply set a specific amount of data at a time, get confirmation from the receiver once the data has been completely received, then send the next part. Dont send the information based on lines, because if you're sending something like an executable then you'll find that sometimes you get files that go for megabytes without a line break, so you'll sit there for ages and it will appear as if nothing is happening.
Mike
"Now I guess we're... 'Path-E-Tech Management'" -Dilbert