BasicSocket.for_fd(fd) => basicsocket
Class Public methods
Returns a socket object which contains the file descriptor, fd.
1 2 3 | # If invoked by inetd, STDIN/STDOUT/STDERR is a socket. STDIN_SOCK = Socket.for_fd( STDIN .fileno) p STDIN_SOCK .remote_address |
Please login to continue.