class Coolio::UNIXSocket

Attributes

address_family[R]
path[R]

Public Class Methods

connect(path, *args) click to toggle source

Connect to the given UNIX domain socket

# File lib/cool.io/socket.rb, line 222
def self.connect(path, *args)
  new(::UNIXSocket.new(path), *args)
end
new(socket) click to toggle source
Calls superclass method Coolio::Socket::new
# File lib/cool.io/socket.rb, line 226
def initialize(socket)
  raise ArgumentError, "socket must be a UNIXSocket" unless socket.is_a? ::UNIXSocket

  super
  @address_family, @path = socket.peeraddr
end