method
addr
v2_2_9 -
Show latest stable
- Class:
UNIXSocket
addr()public
Returns the local address as an array which contains address_family and unix_path.
Example
serv = UNIXServer.new("/tmp/sock") p serv.addr #=> ["AF_UNIX", "/tmp/sock"]