aws-crt
Version:
NodeJS bindings to the aws-c-* libraries
48 lines • 1.85 kB
JavaScript
;
/* Copyright 2010-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
Object.defineProperty(exports, "__esModule", { value: true });
var io_1 = require("../common/io");
exports.TlsVersion = io_1.TlsVersion;
exports.SocketType = io_1.SocketType;
exports.SocketDomain = io_1.SocketDomain;
const io_2 = require("../common/io");
function is_alpn_available() {
return false;
}
exports.is_alpn_available = is_alpn_available;
class InputStream {
constructor(data) {
this.data = data;
}
}
exports.InputStream = InputStream;
/**
* Standard Berkeley socket style options.
*
* Provided for compatibility with nodejs, but this version is largely unused.
*/
class SocketOptions {
constructor(type = io_2.SocketType.STREAM, domain = io_2.SocketDomain.IPV6, connect_timeout_ms = 5000, keepalive = false, keep_alive_interval_sec = 0, keep_alive_timeout_sec = 0, keep_alive_max_failed_probes = 0) {
this.type = type;
this.domain = domain;
this.connect_timeout_ms = connect_timeout_ms;
this.keepalive = keepalive;
this.keep_alive_interval_sec = keep_alive_interval_sec;
this.keep_alive_timeout_sec = keep_alive_timeout_sec;
this.keep_alive_max_failed_probes = keep_alive_max_failed_probes;
}
}
exports.SocketOptions = SocketOptions;
//# sourceMappingURL=io.js.map