handleMSG_SERVICE_REQUEST method

void handleMSG_SERVICE_REQUEST(
  1. MSG_SERVICE_REQUEST msg
)

Implementation

void handleMSG_SERVICE_REQUEST(MSG_SERVICE_REQUEST msg) {
  switch (msg.serviceName) {
    case 'ssh-userauth':
      writeCipher(MSG_SERVICE_ACCEPT(msg.serviceName));
      break;

    default:
      throw FormatException('service name ${msg.serviceName}');
  }
}