unix

Addrinfo.unix(path [, socktype]) => addrinfo
Class Public methods

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>
doc_ruby_on_rails
2015-03-30 05:33:55
Comments
Leave a Comment

Please login to continue.