Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 | 41x 41x 41x 41x 41x 41x 41x 4x 4x 4x 4x 4x 4x 4x 41x 41x 1x 1x 41x 41x 2x 2x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 3x 3x 3x 3x 3x 41x 41x 3x 3x 41x 41x 2x 2x 41x 41x 1x 1x 41x 41x 41x 41x 41x 41x 41x 41x 3x 3x 3x 3x 41x 41x 2x 2x 41x 41x 1x 1x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 1x 1x 1x 1x 1x 41x 41x 41x 41x 1x 1x 41x 41x 41x | // Copyright (c) ZeroC, Inc. /** * Base class providing access to the endpoint details. */ export class EndpointInfo { constructor(underlying, timeout, compress) { if (underlying === null) { // EndpointInfo(timeout, compress) this._underlying = null; this._timeout = timeout; this._compress = compress; } else { this._underlying = underlying; this._timeout = underlying.timeout; this._compress = underlying.compress; } } get timeout() { return this._timeout; } get compress() { return this._compress; } get underlying() { return this._underlying; } type() { return this._underlying?.type() ?? -1; } secure() { return this._underlying?.secure() ?? false; } } /** * Provides access to the address details of a IP endpoint. * @see {@link Endpoint} */ export class IPEndpointInfo extends EndpointInfo { constructor(timeout, compress, host, port, sourceAddress) { super(null, timeout, compress); this._host = host; this._port = port; this._sourceAddr = sourceAddress; } get host() { return this._host; } get port() { return this._port; } get sourceAddress() { return this._sourceAddr; } } /** * Provides access to a TCP endpoint information. * @see {@link Endpoint} */ export class TCPEndpointInfo extends IPEndpointInfo { constructor(timeout, compress, host, port, sourceAddress, type, secure) { super(timeout, compress, host, port, sourceAddress); this._type = type; this._secure = secure; } type() { return this._type; } secure() { return this._secure; } } /** * Provides access to a WebSocket endpoint information. */ export class WSEndpointInfo extends EndpointInfo { constructor(underlying, resource) { super(underlying); this._resource = resource; } get resource() { return this._resource; } } /** * Provides access to the details of an opaque endpoint. * @see {@link Endpoint} */ export class OpaqueEndpointInfo extends EndpointInfo { constructor(type, rawEncoding, rawBytes) { super(null, -1, false); this._type = type; this._rawEncoding = rawEncoding; this._rawBytes = rawBytes; } type() { return this._type; } get rawEncoding() { return this._rawEncoding; } get rawBytes() { return this._rawBytes; } } |