Sha256: b014cf97e4abeb85f3b30d629481396dc83ca0c51d3bdbce28d46f5ce2f32cda

Contents?: true

Size: 683 Bytes

Versions: 11

Compression:

Stored size: 683 Bytes

Contents

# Copyright (c) 2021 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details.
# frozen_string_literal: true

require 'contrast/api/communication/socket'

module Contrast
  module Api
    module Communication
      # Implements a UNIX domain socket to connect to the Contrast Service.
      class UnixSocket
        include Contrast::Api::Communication::Socket

        attr_reader :path

        # Create the socket
        # @param path [String] file path to a UNIX domain socket
        def initialize path
          @path = path
        end

        def new_socket
          ::UNIXSocket.new(path)
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
contrast-agent-4.13.1 lib/contrast/api/communication/unix_socket.rb
contrast-agent-4.13.0 lib/contrast/api/communication/unix_socket.rb
contrast-agent-4.12.0 lib/contrast/api/communication/unix_socket.rb
contrast-agent-4.11.0 lib/contrast/api/communication/unix_socket.rb
contrast-agent-4.10.0 lib/contrast/api/communication/unix_socket.rb
contrast-agent-4.9.1 lib/contrast/api/communication/unix_socket.rb
contrast-agent-4.9.0 lib/contrast/api/communication/unix_socket.rb
contrast-agent-4.8.0 lib/contrast/api/communication/unix_socket.rb
contrast-agent-4.7.0 lib/contrast/api/communication/unix_socket.rb
contrast-agent-4.6.0 lib/contrast/api/communication/unix_socket.rb
contrast-agent-4.5.0 lib/contrast/api/communication/unix_socket.rb