Created
April 18, 2017 13:11
-
-
Save anonymous/64cf0ae217c6f3a118a899e310067ea8 to your computer and use it in GitHub Desktop.
the description for this gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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