Skip to content

Instantly share code, notes, and snippets.

Created April 18, 2017 13:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/64cf0ae217c6f3a118a899e310067ea8 to your computer and use it in GitHub Desktop.
Save anonymous/64cf0ae217c6f3a118a899e310067ea8 to your computer and use it in GitHub Desktop.
the description for this gist
setHandler(bytesOut, new OutHandler {
override def onPull() = {
state match {
case Starting ⇒
// We send connectMsg before any other message
push(bytesOut, connectMsg)
state = Connecting
pull(sslIn)
case Connecting ⇒
pull(sslIn)
case Connected ⇒
pull(sslIn)
}
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment