dart-sdk/sdk_nnbd/lib/vmservice/constants.dart
Ben Konyi 93c3c28d2b [ VM / dart:vmservice ] Migrate dart:vmservice to NNBD, cleanup outdated code
Change-Id: I84ef4cea95a20171d842ea0f0db668c1dbbe5dae
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/131480
Commit-Queue: Ben Konyi <bkonyi@google.com>
Reviewed-by: Ryan Macnak <rmacnak@google.com>
2020-01-15 01:00:34 +00:00

22 lines
943 B
Dart

// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
part of dart._vmservice;
// These must be kept in sync with runtime/vm/service.cc.
class Constants {
static const int SERVICE_EXIT_MESSAGE_ID = 0;
static const int ISOLATE_STARTUP_MESSAGE_ID = 1;
static const int ISOLATE_SHUTDOWN_MESSAGE_ID = 2;
static const int WEB_SERVER_CONTROL_MESSAGE_ID = 3;
static const int SERVER_INFO_MESSAGE_ID = 4;
/// Signals an RPC coming from native code (instead of from a websocket
/// connection). These calls are limited to simple request-response and do
/// not allow arbitrary json-rpc messages.
///
/// The messages are an array of length 3:
/// (METHOD_CALL_FROM_NATIVE, String jsonRequest, PortId replyPort).
static const int METHOD_CALL_FROM_NATIVE = 5;
}