Arc Forumnew | comments | leaders | submitlogin
2 points by shader 5082 days ago | link | parent

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 5082 days ago | link

thanks, i'll give it a whirl.

-----