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

[REBOL] ** Script Error: Cannot use copy on this type port

From: rchristiansen::pop::isdfa::sei-it::com at: 18-Dec-2000 18:28

I'm teaching myself how to write to and read from ports in REBOL. While trying to copy the data from a port, I get the following error: ** Script Error: Cannot use copy on this type port Can anyone tell me why I cannot use 'copy? I get this error when I use the tcp protocol and the open/lines or open/string refinement. I do not get this error when I use the udp protocol. Here is an example of client and server scripts that do work (if I change the first line of each script to open/lines tcp:* or to open/string tcp:* I get the error): REBOL [] client: open udp://localhost:8009 forever [ message: input insert client message wait client print copy client ] REBOL [] server: open udp://:8009 forever [ wait server receipt: copy [] receipt: copy server print receipt insert server "ACK_RESPONSE" ]