Howdy,
I have a program that needs to request files for transfer from another parent program on the same network. I can transfer the needed files through sockets, but in doing so, the highly dependent user input commands of the program are interrupted; or, on certain user inputs, the transfer of the file data stops. I have the code to transfer small portions of the file at a time and then "wait with messages" before getting the next chunk so user inputs are received, but this is not efficient for the amount of files or file sizes. I'm trying to figure out a way to transfer the files in the background without interrupting the user. My thought was to create another hidden program to handle the transfer and saving.
Any ideas on transferring a file from one program on one computer to another program on another computer within the same network while still being able to run user input handlers?
Thx,
E
Large file transfer
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: Large file transfer
Hi E (what a short name!).
can't you use "shell" to do this?
I mean you could write a batch file or something to disk and then let the OS do the rest
Isn't this an option for your task?
Best
Klaus
can't you use "shell" to do this?
I mean you could write a batch file or something to disk and then let the OS do the rest

Isn't this an option for your task?
Best
Klaus
Re: Large file transfer
Thanks Klaus, I'll look into that.
Eric
Eric
Re: Large file transfer
Hi E,
I have been doing this in the past on OS X, so if you need some hints for this platform, just drop a line here!
Best
Klaus
I have been doing this in the past on OS X, so if you need some hints for this platform, just drop a line here!
Best
Klaus
Re: Large file transfer
Hi Klaus,
If you are still there, I would love some hints.
What I do now is break up large files (video, images) into smaller byte chunks. I open a socket, send the data, write the data to a newly create file with append on the other computer, then let the origian computer know I am ready for the next chunk. This works fine when both computers fast, but really the process is slow and since I send other data through more sockets, the file transfer process seems like it could be interrupted without the user being aware.
The basic premiss is to keep the files in sync on both computers, one being the master with the master files that need to be kept up to date on the other computers within the system.
I'm using LiveCode. The master computer can be either a MacOs or Win32 platform. Most setups will have internet connectivity, but some may be router only.
Thanks again Klaus for any help you can give.
Eric
If you are still there, I would love some hints.
What I do now is break up large files (video, images) into smaller byte chunks. I open a socket, send the data, write the data to a newly create file with append on the other computer, then let the origian computer know I am ready for the next chunk. This works fine when both computers fast, but really the process is slow and since I send other data through more sockets, the file transfer process seems like it could be interrupted without the user being aware.
The basic premiss is to keep the files in sync on both computers, one being the master with the master files that need to be kept up to date on the other computers within the system.
I'm using LiveCode. The master computer can be either a MacOs or Win32 platform. Most setups will have internet connectivity, but some may be router only.
Thanks again Klaus for any help you can give.
Eric