protected function challenge($cb) { $this->onChallenge = $cb; $this->state = self::CONN_STATE_CHALLENGE_PACKET_SENT; $this->write("Action: Challenge\r\n" . "AuthType: MD5\r\n" . "\r\n"); }