public class SocketUtils
extends java.lang.Object
Constructor and Description |
---|
SocketUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
buildAddrinfoList(ThreadContext context,
IRubyObject[] args,
org.jruby.ext.socket.SocketUtils.AddrinfoCallback callback) |
static IRubyObject |
getaddress(ThreadContext context,
IRubyObject hostname) |
static IRubyObject |
getaddrinfo(ThreadContext context,
IRubyObject[] args)
Ruby definition would look like:
def self.getaddrinfo(host, port, family = nil, socktype = nil, protocol = nil, flags = nil, reverse_lookup = nil)
|
static java.util.List<Addrinfo> |
getaddrinfoList(ThreadContext context,
IRubyObject[] args) |
static IRubyObject |
gethostbyaddr(ThreadContext context,
IRubyObject[] args) |
static IRubyObject |
gethostbyname(ThreadContext context,
IRubyObject hostname) |
static IRubyObject |
gethostname(ThreadContext context) |
static IRubyObject |
getnameinfo(ThreadContext context,
IRubyObject[] args) |
static int |
getPortFrom(ThreadContext context,
IRubyObject _port) |
static java.net.InetAddress[] |
getRubyInetAddresses(ByteList address) |
static IRubyObject |
getservbyname(ThreadContext context,
IRubyObject[] args) |
static IRubyObject |
ip_address_list(ThreadContext context) |
static IRubyObject |
pack_sockaddr_in(ThreadContext context,
IRubyObject port,
IRubyObject host)
Deprecated.
|
static IRubyObject |
pack_sockaddr_un(ThreadContext context,
IRubyObject filename)
Deprecated.
|
static int |
portToInt(IRubyObject port) |
static java.lang.RuntimeException |
sockerr_with_trace(Ruby runtime,
java.lang.String msg,
java.lang.StackTraceElement[] trace) |
static java.lang.RuntimeException |
sockerr(Ruby runtime,
java.lang.String msg) |
static RubyArray |
unpack_sockaddr_in(ThreadContext context,
IRubyObject addr)
Deprecated.
|
public static IRubyObject gethostname(ThreadContext context)
public static IRubyObject gethostbyaddr(ThreadContext context, IRubyObject[] args)
public static IRubyObject getservbyname(ThreadContext context, IRubyObject[] args)
@Deprecated public static IRubyObject pack_sockaddr_in(ThreadContext context, IRubyObject port, IRubyObject host)
@Deprecated public static RubyArray unpack_sockaddr_in(ThreadContext context, IRubyObject addr)
@Deprecated 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 java.util.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 java.net.InetAddress[] getRubyInetAddresses(ByteList address) throws java.net.UnknownHostException
java.net.UnknownHostException
public static IRubyObject getaddress(ThreadContext context, IRubyObject hostname)
public static java.lang.RuntimeException sockerr(Ruby runtime, java.lang.String msg)
public static java.lang.RuntimeException sockerr_with_trace(Ruby runtime, java.lang.String msg, java.lang.StackTraceElement[] trace)
public static int getPortFrom(ThreadContext context, IRubyObject _port)
public static int portToInt(IRubyObject port)
Copyright © 2001-2019 JRuby. All Rights Reserved.