| | | 1 | | // Copyright (c) ZeroC, Inc. |
| | | 2 | | |
| | | 3 | | namespace IceRpc.Internal; |
| | | 4 | | |
| | | 5 | | /// <summary>The IceRPC protocol class.</summary> |
| | | 6 | | internal sealed class IceRpcProtocol : Protocol |
| | | 7 | | { |
| | | 8 | | /// <summary>Gets the IceRpc protocol singleton.</summary> |
| | 5940 | 9 | | internal static IceRpcProtocol Instance { get; } = new(); |
| | | 10 | | |
| | | 11 | | private IceRpcProtocol() |
| | 14 | 12 | | : base( |
| | 14 | 13 | | name: "icerpc", |
| | 14 | 14 | | defaultPort: 4062, |
| | 14 | 15 | | hasFields: true, |
| | 14 | 16 | | hasFragment: false, |
| | 14 | 17 | | hasPayloadContinuation: true, |
| | 14 | 18 | | supportsPayloadWriterInterceptors: true, |
| | 14 | 19 | | byteValue: 2) |
| | 14 | 20 | | { |
| | 14 | 21 | | } |
| | | 22 | | } |