OLD | NEW |
1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 /// This comment describes the Fletch Agent's request and reply message format. | 5 /// This comment describes the Fletch Agent's request and reply message format. |
6 /// | 6 /// |
7 /// Message requests all start with the following header: | 7 /// Message requests all start with the following header: |
8 /// | 8 /// |
9 /// ----------------------------------------- | 9 /// ----------------------------------------- |
10 /// | Command (16 bits) | Version (16 bits) | | 10 /// | Command (16 bits) | Version (16 bits) | |
11 /// ----------------------------------------- | 11 /// ----------------------------------------- |
(...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
613 final String message; | 613 final String message; |
614 MessageDecodeException(this.message); | 614 MessageDecodeException(this.message); |
615 String toString() => 'MessageDecodeException($message)'; | 615 String toString() => 'MessageDecodeException($message)'; |
616 } | 616 } |
617 | 617 |
618 class MessageEncodeException implements Exception { | 618 class MessageEncodeException implements Exception { |
619 final String message; | 619 final String message; |
620 MessageEncodeException(this.message); | 620 MessageEncodeException(this.message); |
621 String toString() => 'MessageEncodeException($message)'; | 621 String toString() => 'MessageEncodeException($message)'; |
622 } | 622 } |
OLD | NEW |