Flowdock
method

peeraddr

Importance_0
peeraddr() public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
static VALUE
unix_peeraddr(VALUE sock)
{
    rb_io_t *fptr;
    struct sockaddr_un addr;
    socklen_t len = sizeof addr;

    GetOpenFile(sock, fptr);

    if (getpeername(fptr->fd, (struct sockaddr*)&addr, &len) < 0)
        rb_sys_fail("getpeername(2)");
    return unixaddr(&addr, len);
}
Register or log in to add new notes.