aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/restricted/aws/aws-crt-cpp/source/io/SocketOptions.cpp
blob: 339b81c087cc65e31967c27cb5cfe1c881324941 (plain) (blame)
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
/**
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * SPDX-License-Identifier: Apache-2.0.
 */
#include <aws/crt/io/SocketOptions.h>

namespace Aws
{
    namespace Crt
    {
        namespace Io
        {

            static const uint32_t DEFAULT_SOCKET_TIME_MSEC = 3000;

            SocketOptions::SocketOptions()
            {
                options.type = AWS_SOCKET_STREAM;
                options.domain = AWS_SOCKET_IPV4;
                options.connect_timeout_ms = DEFAULT_SOCKET_TIME_MSEC;
                options.keep_alive_max_failed_probes = 0;
                options.keep_alive_timeout_sec = 0;
                options.keep_alive_interval_sec = 0;
                options.keepalive = false;
            }
        } // namespace Io
    }     // namespace Crt
} // namespace Aws