Sha256: c921d2bc309032814698a1f3ba7ebe7a05e86ee3b5866f95dbe82bef67562df7
Contents?: true
Size: 606 Bytes
Versions: 11
Compression:
Stored size: 606 Bytes
Contents
# Copyright (c) 2020 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details. # frozen_string_literal: true cs__scoped_require 'contrast/api/socket' module Contrast module Api # Implements a UNIX domain socket to connect to the Contrast Service. class UnixSocket include Contrast::Api::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
Version data entries
11 entries across 11 versions & 1 rubygems