UNPKG

aws-crt

Version:

NodeJS/browser bindings to the aws-c-* libraries

46 lines (45 loc) 1.05 kB
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ /** * TLS Version * * @module aws-crt * @category TLS */ export declare enum TlsVersion { SSLv3 = 0, TLSv1 = 1, TLSv1_1 = 2, TLSv1_2 = 3, TLSv1_3 = 4, Default = 128 } /** * @module aws-crt * @category I/O */ export declare enum SocketType { /** * A streaming socket sends reliable messages over a two-way connection. * This means TCP when used with {@link SocketDomain.IPV4}/{@link SocketDomain.IPV6}, * and Unix domain sockets when used with {@link SocketDomain.LOCAL } */ STREAM = 0, /** * A datagram socket is connectionless and sends unreliable messages. * This means UDP when used with {@link SocketDomain.IPV4}/{@link SocketDomain.IPV6}. * {@link SocketDomain.LOCAL} is not compatible with {@link DGRAM} */ DGRAM = 1 } /** * @module aws-crt * @category I/O */ export declare enum SocketDomain { IPV4 = 0, IPV6 = 1, LOCAL = 2 }