Multi-standalone communication

Jim Ault JimAultWins at yahoo.com
Thu Dec 7 18:19:58 EST 2006


On 12/7/06 12:26 PM, "Richard Gaskin" <ambassador at fourthworld.com> wrote:

> Richard Miller wrote:
>> The computer in question is not set up with networking.

You can do a very quick UDP working test --
Download Alex Tweedly's companion stacks from Rev Online,
UDP Echo Client  &  UDP-based Echo Server

...open both in one Rev IDE on either a Mac or Win and in three mouse clicks
watch it work with client and server action.  No internet or LAN required
for same machine operation.

I use this for same-machine and same-Local-network and wide-area-network.

Basically it is like file writing
--send from app A --
open datagram socket "127.0.0.4545"
write "text for another app, from userEntry" to socket "127.0.0.4545"

--listen in app B --
open datagram  socket "4545" with message "gotSumtin"

on gotSumtin host, socket, messageSent
  put messageSent -->( "text for another app, from userEntry")
end gotSumtin

LAN would need the IP of the listening machines
WAN would need IP of the routers (static IP's) to send

To send to more that one app on one machine
open datagram socket "192.161.15.106:4666"
write "text for another app" to socket  "192.161.15.106:4666"

open datagram socket "192.161.15.106:5556"
write "text2 for another app" to socket  "192.161.15.106:5556"

Jim Ault
Las Vegas





More information about the use-livecode mailing list