Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.jruby.ext.socket;
 
 import org.jruby.Ruby;

Author(s):
nicksieger
public class SocketLibrary implements Library {
    public void load(final Ruby runtimeboolean wrapthrows IOException {
        runtime.defineClass("SocketError"runtime.getStandardError(), runtime.getStandardError().getAllocator());
        RubyBasicSocket.createBasicSocket(runtime);
        RubySocket.createSocket(runtime);
        RubyServerSocket.createServerSocket(runtime);
        if (runtime.getInstanceConfig().isNativeEnabled() && !.) {
            RubyUNIXSocket.createUNIXSocket(runtime);
            RubyUNIXServer.createUNIXServer(runtime);
        }
        RubyIPSocket.createIPSocket(runtime);
        RubyTCPSocket.createTCPSocket(runtime);
        RubyTCPServer.createTCPServer(runtime);
        RubyUDPSocket.createUDPSocket(runtime);
        if (runtime.is1_9()) {
            Addrinfo.createAddrinfo(runtime);
            Option.createOption(runtime);
        }
    }
New to GrepCode? Check out our FAQ X