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

[REBOL] Re: Encryption

From: tomc:darkwing:uoregon at: 8-Sep-2003 10:17

On Mon, 8 Sep 2003, Matt MacDonald wrote:
> Ok, good enough. So if I'm understanding correctly. I should be able to > have 2 binary ports. One sending and one receiving. Then send the data > through the sending port (as binary) and recieve it on the recieving port. > Then change it to string and parse it from there. Here is what is happening > though: > > I send a simple message "Hi" > i have to do 2 reads on the recieving port, which returns 72 and 105 - both > integers. So my question is then, why do I get integers instead of binary > data, and if I need to deal with integers and somehow convert them to > characters, how do I know when to stop reading from the recieving port?
the 72 & 105 are the ASCCI values for the chars H & i
>> to-char 72
== #"H"
>> to-char 105
== #"i"