Arc Forumnew | comments | leaders | submitlogin
ASK AF: Any progress/usage with telnet?
1 point by thaddeus 5080 days ago | 2 comments
I'm interested in using arc telnet for a project.

I remember reading this (http://arclanguage.org/item?id=6606) post a long time ago. I'm led to believe that there were/are problems - performance wise. Or was that purely an Arc 2 problem (pre connect-socket).

I'm now wondering if anyone has investigated or implemented anything since that could provide the insight I need.

Thanks,



2 points by shader 5079 days ago | link

I don't really know what other support for tcp connect already exists for arc, but I copied (and slightly modified) this from somewhere else on the forum, for use with anarki:

  (def connect (host port) 
    ($ (let-values (((in out) (tcp-connect ,host ,port))) 
      (list in out))))
I created this as well:

  (def disconnect (out)
    ($ (close-output-port ,out)))
I'm using them right now for developing an irc-bot, and they're working pretty well.

-----

1 point by thaddeus 5079 days ago | link

thanks, i'll give it a whirl.

-----