init()

in Source/AwsCommonRuntimeKit/io/TlsConnectionOptions.swift [10:21]


	init(_ context: TlsContext, allocator: Allocator) {
		self.allocator = allocator

        var connectionsPointer: UnsafeMutablePointer<aws_tls_connection_options> = allocatePointer()
		aws_tls_connection_options_init_from_ctx(connectionsPointer, context.rawValue)
        #if os(iOS) || os(watchOS)
        connectionsPointer.pointee.timeout_ms = 30_000
        #else
        connectionsPointer.pointee.timeout_ms = 3_000
        #endif
        self.rawValue = connectionsPointer
	}