This is a Ruby tree! It shows every object from the Ruby Programming Language in a tree format.

recvfrom

        # UNIXSocket.recvfrom

(from ruby core)
---
    unixsocket.recvfrom(maxlen [, flags[, outbuf]]) => [mesg, unixaddress]

---

Receives a message via *unixsocket*.

*maxlen* is the maximum number of bytes to receive.

*flags* should be a bitwise OR of Socket::MSG_* constants.

*outbuf* will contain only the received data after the method call even
if it is not empty at the beginning.

    s1 = Socket.new(:UNIX, :DGRAM, 0)
    s1_ai = Addrinfo.unix("/tmp/sock1")
    s1.bind(s1_ai)

    s2 = Socket.new(:UNIX, :DGRAM, 0)
    s2_ai = Addrinfo.unix("/tmp/sock2")
    s2.bind(s2_ai)
    s3 = UNIXSocket.for_fd(s2.fileno)

    s1.send "a", 0, s2_ai
    p s3.recvfrom(10) #=> ["a", ["AF_UNIX", "/tmp/sock1"]]



      

This is MURDOC! A Ruby documentation browser inspired by Smalltalk-80. It allows you to learn about Ruby by browsing through its class hierarchies, and see any of its methods.