UNIXSocket

class UNIXSocket

Parent:
BasicSocket

UNIXSocket represents a UNIX domain stream client socket.

Public Class Methods

new(path) → unixsocket Show source

Creates a new UNIX client socket connected to path.

require 'socket'

s = UNIXSocket.new("/tmp/sock")
s.send "hello", 0