Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
class method
UNIXSocket.new
UNIXSocket.new(path) => unixsocket
ext/socket/unixsocket.c
View on GitHub ↗
static VALUE
unix_init(VALUE self, VALUE path)
{
return rsock_init_unixsock(self, path, 0);
}
Creates a new UNIX client socket connected to path.
Example
require 'socket' s = UNIXSocket.new("/tmp/sock") s.send "hello", 0