Flowdock
method

addr

Importance_1
Ruby latest stable (v1_9_3_392) - 0 notes - 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"]
Show source
Register or log in to add new notes.