First I assume each stack is running in its own execution session on the respective machines - both stacks are not running under the same copy of the engine on one machine. If that were true, both stacks would be running on the same machine, no?

Given the above, I can think of 2 ways.

1) Set up a socket connection between the two stacks and write a TCP data stream from one to the other. If you do this, it might be a good idea to base64Encode the data before transferring it. And it would help the receiving machine know what to expect if line 1 of the data contains only a number which tells the total number of chars being transferred in lines 2 to the end of the data. Then the receiving computer can read the socket for 1 line, and then read for <line-1-number> chars. When the data has been transferred, the receiving machine can base64Decode it and put it into url "binfile:<newFilePath>". I believe that should work.

2) Open a socket connection between the two and transfer only a URL. Then the receiving machine could grab the file by its URL (that sounds painful!) and copy it over. This assumes the file whose URL was passed is sitting in a place on the sending machine that is accessible to the receiving one.

3) I bet there are other ways.

Hope this helps -
Phil Davis


On 8/5/10 11:46 AM, Alejandro Tejada wrote:
Hi all,

How could i use Rev to copy a binary file between
stacks opened in two different computers over a
local area network?

In this LAN, every computer reports at least
two different IP directions:
The first IP (reported by IPconfig) are in the
range 192.168.1.[0-255].
The second IP (visible from the web) are in
the range from 201.229.179.[0-255]

Every idea is welcome!
Thanks in advance.

Al


--
Phil Davis

PDS Labs
Professional Software Development
http://pdslabs.net

_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to