Skip to content

Instantly share code, notes, and snippets.

@brson
Created January 22, 2012 01:09
Show Gist options
  • Save brson/1654881 to your computer and use it in GitHub Desktop.
Save brson/1654881 to your computer and use it in GitHub Desktop.
connect ("host", port) -> fileno
notify_on _read (channel, fileno)
read (fileno) -> "data"
notify_on _write (channel, fileno)
write (fileno, "data") -> bytes_written
close (fileno)
notify_on _timeout (channel, millis)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment