Sha256: d290bcfb502c50dc4b8761221d8f8f54fa1e9fa1554b0af85755c8792cb7bb49
Contents?: true
Size: 716 Bytes
Versions: 2
Compression:
Stored size: 716 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 # @return [::UNIXSocket] def new_socket ::UNIXSocket.new(path) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
contrast-agent-4.14.1 | lib/contrast/api/communication/unix_socket.rb |
contrast-agent-4.14.0 | lib/contrast/api/communication/unix_socket.rb |