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

[REBOL] Problem with try [ open/direct/binary tcp://... ] Re:(6)

From: eventi:nyic at: 2-Oct-2000 22:58

>Hello [eventi--nyic--com], > >Actually you can almost use your original function, you just got to be >carefull not to evaluate the error! value.
It made sense once I thought about it a bit.
>BTW. >I once started on a REBOL implementation of the Gnutella protocol, so if >you're interested in some marshalling functions, etc - just let me know...
I'm having fun with mine, thank you, but I'll let you know if I get stuck ;) Too bad Gnutella's sucking so bad lately... I'm finding that REBOL's a pretty nice tool to get close to the protocol. Out of curiosity, how do you reverse byte order, for things like the length header? And I havn't seen an elegant way to concatenate binary! type data. Join would be nice.
>> probe join #{012345} [ #{0123} ]
#{012345237B303132337D}
>> ; This makes me cringe >> probe to-binary join to-string #{012345} [ to-string #{6798} ]
#{0123456798} == #{0123456798}