using socket port twice in runrev on the same machine

Phil Davis revdev at pdslabs.net
Wed Aug 23 11:41:15 EDT 2006


Hi Franz,

runrev at animabit.de wrote:
> Hi
--- snip ---
> I want to connect different programs (runrev standalones, visual basic based
exe and perl programms on webservers) using sockets and often it is necessary to
connect two programs on the same machine.
> 
> A) runrev_program_a.exe serving on port 8080
> B) runrev_program_b.exe calling info from A at http://127.0.0.1:8080 and
perhaps serving on port 8081 and viceversa ...


This should be no problem at all. I do something similar in a system I wrote. It 
works like this:

app#1
   - listen on 1335
   - write to 1336

app#2
   - listen on 1336
   - write to 1335

The apps read/write binary data back and forth to each other. They don't use 
HTTP when they talk. They just use 127.0.0.1:<port number>.

Phil Davis



More information about the use-livecode mailing list