Package org.jruby

Examples of org.jruby.RubyIO.fileno()


    @JRubyMethod
    public IRubyObject socket(ThreadContext context) {
      SelectableChannel socket = postgresqlConnection.getSocket();
      RubyIO rubyIO = RubyIO.newIO(context.runtime, socket);
      return rubyIO.fileno(context);
    }

    @JRubyMethod
    public IRubyObject backend_pid(ThreadContext context) {
      return context.runtime.newFixnum(postgresqlConnection.getBackendPid());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.