Flowdock
method

unix

Importance_1
Ruby latest stable (v1_9_3_392) - 0 notes - Class: Addrinfo
unix(p1, p2 = v2) public

returns an addrinfo object for UNIX socket address.

socktype specifies the socket type. If it is omitted, :STREAM is used.

Addrinfo.unix("/tmp/sock")         #=> #<Addrinfo: /tmp/sock SOCK_STREAM>
Addrinfo.unix("/tmp/sock", :DGRAM) #=> #<Addrinfo: /tmp/sock SOCK_DGRAM>
Show source
Register or log in to add new notes.