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

[REBOL] Re: Ports #2

From: tomc:darkwing:uoregon at: 8-Sep-2003 14:11

On Mon, 8 Sep 2003, Matt MacDonald wrote:
> Here is the exact code that I am using for this function: > > decrypt: func [dataport [port!]] > [ > crypt-key: #{5C2486ADFD7F36765A7A163E86C6FB9A} > decrypt-port: make port! [ > scheme: 'crypt > algorithm: 'blowfish > direction: 'decrypt > strength: 128 > key: crypt-key > padding: true > ] > > everything: copy "" > data: copy "" > while[data: copy dataport][append everything data] > print everything <------------ prints nothing
try something more like this also keep in mind that you are getting a binary stream earler you saw two integer because they were interperted as integers by the printing process you used to determine what was comming to the port I do not know that you can count on copying one byte at a time off the port, maybe one of the network gurus (or putting a 'print data' in the loop) will answer that.