public class SocketUtils extends Object
Constructor and Description |
---|
SocketUtils() |
public static IRubyObject gethostname(ThreadContext context)
public static IRubyObject gethostbyaddr(ThreadContext context, IRubyObject[] args)
public static IRubyObject getservbyname(ThreadContext context, IRubyObject[] args)
public static IRubyObject pack_sockaddr_in(ThreadContext context, IRubyObject port, IRubyObject host)
public static IRubyObject unpack_sockaddr_in(ThreadContext context, IRubyObject addr)
public static IRubyObject pack_sockaddr_un(ThreadContext context, IRubyObject filename)
public static IRubyObject gethostbyname(ThreadContext context, IRubyObject hostname)
public static IRubyObject getaddrinfo(ThreadContext context, IRubyObject[] args)
public static List<Addrinfo> getaddrinfoList(ThreadContext context, IRubyObject[] args)
public static void buildAddrinfoList(ThreadContext context, IRubyObject[] args, org.jruby.ext.socket.SocketUtils.AddrinfoCallback callback)
public static IRubyObject getnameinfo(ThreadContext context, IRubyObject[] args)
public static IRubyObject ip_address_list(ThreadContext context)
public static InetAddress getRubyInetAddress(org.jruby.util.ByteList address) throws UnknownHostException
UnknownHostException
public static IRubyObject getaddress(ThreadContext context, IRubyObject hostname)
public static RuntimeException sockerr(Ruby runtime, String msg)
public static RuntimeException sockerr_with_trace(Ruby runtime, String msg, StackTraceElement[] trace)
public static int getPortFrom(ThreadContext context, IRubyObject _port)
public static int portToInt(IRubyObject port)
Copyright © 2001-2015 JRuby. All Rights Reserved.