SocketOptions.cpp 817 B

12345678910111213141516171819202122232425262728
  1. /**
  2. * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
  3. * SPDX-License-Identifier: Apache-2.0.
  4. */
  5. #include <aws/crt/io/SocketOptions.h>
  6. namespace Aws
  7. {
  8. namespace Crt
  9. {
  10. namespace Io
  11. {
  12. static const uint32_t DEFAULT_SOCKET_TIME_MSEC = 3000;
  13. SocketOptions::SocketOptions()
  14. {
  15. options.type = AWS_SOCKET_STREAM;
  16. options.domain = AWS_SOCKET_IPV4;
  17. options.connect_timeout_ms = DEFAULT_SOCKET_TIME_MSEC;
  18. options.keep_alive_max_failed_probes = 0;
  19. options.keep_alive_timeout_sec = 0;
  20. options.keep_alive_interval_sec = 0;
  21. options.keepalive = false;
  22. }
  23. } // namespace Io
  24. } // namespace Crt
  25. } // namespace Aws