305306307308309310311312313314315
} return runtime.newString(sock.toString()); } catch (BadDescriptorException e) { throw runtime.newErrnoEBADFError(); } } @JRubyMethod(name = "getpeereid", notImplemented = true) public IRubyObject getpeereid(ThreadContext context) {
397398399400401402403404405406407
// shutdown write try { shutdownInternal(context, 1); } catch (BadDescriptorException e) { throw runtime.newErrnoEBADFError(); } return context.nil; }
421422423424425426427428429430431
// shutdown read try { shutdownInternal(context, 0); } catch (BadDescriptorException e) { throw runtime.newErrnoEBADFError(); } } return context.nil; }