Skip to content

Instantly share code, notes, and snippets.

@sarahhodne
Created June 10, 2009 00:40
Show Gist options
  • Save sarahhodne/126938 to your computer and use it in GitHub Desktop.
Save sarahhodne/126938 to your computer and use it in GitHub Desktop.
select() # Does it's magic
# if statements to check what was written to
if FD_ISSET(blah) {
}
if FD_ISSET(ssl_socket) {
# An SSL socket was written to
SSL_read()
if SSL_pending() {
read data
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment