Flowdock
method

peeraddr

Importance_1
Ruby latest stable (v1_9_3_392) - 0 notes - Class: UNIXSocket
peeraddr() public

Returns the remote address as an array which contains address_family and unix_path.

Example

serv = UNIXServer.new("/tmp/sock")
c = UNIXSocket.new("/tmp/sock")
p c.peeraddr #=> ["AF_UNIX", "/tmp/sock"]
Show source
Register or log in to add new notes.