There was a request 87 days ago for the ability to connect to a remote tcp port (jgrahamc). I'm interested in that as well (well, actually telnet). Is that easy to do by adding some xdefs to ac.scm? Merely adding (xdef 'tcp-connect tcp-connect) to ac.scm puts me in a little bit of trouble (both in mzscheme and in arc). In mzscheme it gives me two values in return which I can't car > (tcp-connect "avendar.com" 9999)
#<input-port>
#<output-port>
> (car (tcp-connect "avendar.com" 9999))
context expected 1 value, received 2 values: #<input-port> #<output-port>
And similar in arc arc> (tcp-connect "avendar.com" 9999)
Error: "context expected 1 value, received 2 values: #<input-port> #<output-port>"
|