| | | 1 | | // Copyright (c) ZeroC, Inc. |
| | | 2 | | |
| | | 3 | | using System.Net.Sockets; |
| | | 4 | | |
| | | 5 | | namespace IceRpc.Transports.Coloc.Internal; |
| | | 6 | | |
| | | 7 | | internal class ColocEndPoint : System.Net.EndPoint |
| | | 8 | | { |
| | | 9 | | /// <inheritdoc/> |
| | 0 | 10 | | public override AddressFamily AddressFamily => AddressFamily.Unspecified; |
| | | 11 | | |
| | | 12 | | private readonly TransportAddress _transportAddress; |
| | | 13 | | |
| | | 14 | | /// <inheritdoc/> |
| | 103 | 15 | | public override string ToString() => $"{_transportAddress.Host}:{_transportAddress.Port}"; |
| | | 16 | | |
| | 2852 | 17 | | internal ColocEndPoint(TransportAddress transportAddress) => _transportAddress = transportAddress; |
| | | 18 | | } |