Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

communication

 [1/14] from: rotenca:telvia:it at: 5-Jun-2003 19:30


I need to exchange some data between two Rebol programs, I've thought to the TCP interface. 1) Exists a set of routines for the job? 2) Cannot be established by the Rebol community a sort of protocol for this (like in ARexx)? 3) Already exists a public protocol which can be adapted to this (but it must be very light, fast and easy to implement in Rebol) ? --- Ciao Romano

 [2/14] from: gchiu::compkarori::co::nz at: 6-Jun-2003 9:11


On Thu, 5 Jun 2003 19:30:17 +0200 "Romano Paolo Tenca" <[rotenca--telvia--it]> wrote:
>I need to exchange some data between two Rebol programs, >I've thought to the >TCP interface. > >1) Exists a set of routines for the job?
Hi Romano, Maarten has rugby for this purpose ... but it is more intended to be used across a network rather than running locally .. a bit of overkill.
>2) Cannot be established by the Rebol community a sort of >protocol for this >(like in ARexx)? >
Sounds like a great idea. A lot of people have suggested this, but no one has made any start on this. Early on in Rebol's life someone posted scripts that showed Arexx and Rebol integration on the Amiga. Any Arexx experts here?? -- Graham Chiu http://www.compkarori.com/vanilla/ Rebol Encyclopaedia Project

 [3/14] from: Rebolinth:nodep:dds:nl at: 24-Dec-2003 22:19


* correct version ;-) Quoting Romano Paolo Tenca <[rotenca--telvia--it]>: Hello romano, -> 1) Exists a set of routines for the job? depends on your wishes.... -> 2) Cannot be established by the Rebol community a sort of protocol for -> this (like in ARexx)? Ugh? I think in this world are already too much protocols ;-) anyway building a simple protol by yourself isnt that hard, its easy as we talk.. but you need requirement... I think if you pay enough there will be more reply's ;-) -> 3) Already exists a public protocol which can be adapted to this (but it -> must be very light, fast and easy to implement in Rebol) ? Pfiew... what is your idea of 'lite ? Fast? well yes... udp is what rebol has as fastest and tcp the most relyable.. I think what you need is some tool like "netcat" or "netpipe".. on the other hand building your own protcol is done within 60 minutes cooking time ;-) -- bakery -- bread: open tcp://remote:port id: "unions" name: "sausage" ingredients: reduce [ name id ] ketchup: read/binary %MostArt&MayOnAise delivery: reduce [ ingredients ketchup ] finaly --> insert bread delivery remote-pizza-guy: does [ write %hungry copy his-lunch ] (R)egards, Norman.

 [4/14] from: Rebolinth:nodep:dds:nl at: 24-Dec-2003 22:19


Hiya Graham. More intrested I am in the "Fork()off" issue, where did it come from and where will it launch? if it will? Greetings, Norman. -- Conversation/lunch: "How do you Eat your Rebol in the Morning?"

 [5/14] from: petr:krenzelok:trz:cz at: 5-Jun-2003 23:36


Romano Paolo Tenca wrote:
>I need to exchange some data between two Rebol programs, I've thought to the >TCP interface.
<<quoted lines omitted: 6>>
>Ciao >Romano
uh? What about Rugby? Easy to use, works over network, can use secure communication etc. -pekr-

 [6/14] from: chris:ross-gill at: 5-Jun-2003 19:55


Hi Romano and Graham,
> >2) Cannot be established by the Rebol community a sort of > >protocol for this
<<quoted lines omitted: 4>>
> Early on in Rebol's life someone posted scripts that > showed Arexx and Rebol integration on the Amiga.
That would be PipeBridge -- http://www.mindspring.com/~timrue/RebolTips.html
> Any Arexx experts here??
If I had time -- I'd love to attack PPaint with some imaginatively drafted scripts... - Chris

 [7/14] from: antonr:iinet:au at: 6-Jun-2003 16:45


I think Romano mentioned Arexx because it was for communication between local programs. A local interface (pipes) can be much faster than tcp because you can have a shared data area. You could, for instance, copy a bunch of data to the shared region, then pass pointers to it to several other programs that want to use it. (One after the other or at the same time.) Data transfer through TCP is always going to make you copy the data. So you can see an advantage with local pipes. So, it is a good question... Anton.

 [8/14] from: alanwall:sonic at: 5-Jun-2003 23:52


Hello Christopher On 06/05/03, Christopher Ross-Gill wrote:
> Hi Romano and Graham, >>> 2) Cannot be established by the Rebol community a sort of
<<quoted lines omitted: 13>>
> drafted scripts... > - Chris
I've talked to Michael about if he uses Rebol and he said "not at this time but knows of it" Regards -- Sex is hereditary. If your parents never had it, chances are you won't either. -- Murphy's laws on sex sent via Yam ver2.31 on AmigaForever verV Be a Rebel get Rebol@ rebol.com UIN#=9391028

 [9/14] from: ptretter::charter::net at: 6-Jun-2003 8:42


Well, I think TCP would definitely be the preferred way to do it. Not sure what your applications do but be ready if you decide to code this yourself to handle situations such as timeouts and how they effect your data stream and also network problems such as ports that don't respond after they have been opened, etc... I like to think of it as "Managing your waitlist". And since most likely your going to follow or create a protocol then you want to make sure that your parser handles the incoming data should it not be complete. Good luck. I'm sure there are many on the list that can help you along the way. Paul Tretter

 [10/14] from: brett:codeconscious at: 7-Jun-2003 0:18


As my father-in-law said when I asked for his daughter's hand in marriage - That is a very big question. Regards, Brett.

 [11/14] from: doncox:enterprise at: 6-Jun-2003 16:37


On 06/06/03, Anton wrote:
> I think Romano mentioned Arexx because it was > for communication between local programs.
<<quoted lines omitted: 7>>
> you copy the data. > So you can see an advantage with local pipes.
Scripting on the Amiga (usually with ARexx but you can also use Python) works with message passing. There is no mass copying of data at all, but this relies on the use of a single memory space for all tasks. Regards -- Don Cox [doncox--enterprise--net]

 [12/14] from: rotenca:telvia:it at: 8-Jun-2003 13:19


Hi all,
> uh? What about Rugby? Easy to use, works over network, can use secure > communication etc.
Rugby is too much. Then it makes only http tunneling (at least the last time i saw it). I need something light and TCP. I can write it as I like for my purposes, but i did not want to re-write the wheel and i think that Arexx ports where soo good. Obviously TCP requires to copy the data. --- Ciao Romano

 [13/14] from: maarten:koopmans:surfnet:nl at: 8-Jun-2003 15:26


But Rugby may be fast enough for most purposes at a few 100 reqs/sec. --Maarten Romano Paolo Tenca wrote:

 [14/14] from: rotenca:telvia:it at: 8-Jun-2003 16:31


> But Rugby may be fast enough for most purposes at a few 100 reqs/sec.
Yes, you are right! --- Ciao Romano

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted