UNIXServer

class UNIXServer

Parent:
UNIXSocket

UNIXServer represents a UNIX domain stream server socket.

Public Class Methods

new(path) → unixserver Show source

Creates a new UNIX server socket bound to path.

require 'socket'

serv = UNIXServer.new("/tmp/sock")
s = serv.accept
p s.read