How to use sockets?
Björnke von Gierke
bvg at mac.com
Wed Nov 10 08:31:30 CST 2004
On Nov 10 2004, at 12:42, thierry wrote:
> BvG> On Nov 07 2004, at 23:46, DJ Grumble wrote:
> BvG> note: this is the hard way, with datagramm sockets its way
> simpler, but
> BvG> that's the way i would do it :)
> out of curiosity :-) what would be simpler with Datagramm ?????
With datagram sockets you don't need to care about delimiters, also the
connection scheme is simpler, as you normally don't use as much
accept datagram connections on port 8181 with message "Connected"
close socket theIP
on connected theIP theMessage
put theMessage after field "Your field here"
open datagram socket to "localhost:8181"
write the text of me & return to socket "localhost:8181"
close socket "localhost:8181"
> otherwise, can someone tell me the pros and cons of communicating
> between revolution and an outside program using "the open process"
> open socket
> ( the outside program reads few properties
> from revolution during the execution and then write to some others...
> please, nothing to do with the shell() command.
> the environment is Win98, NT and XP
official ChatRev page:
Chat with other RunRev developers:
go stack URL "http://homepage.mac.com/bvg/chatrev1.2.5.rev"
More information about the use-livecode