public class SocketUtils extends 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 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 InetAddress |
getRubyInetAddress(org.jruby.util.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) |
static IRubyObject |
pack_sockaddr_un(ThreadContext context,
IRubyObject filename) |
static int |
portToInt(IRubyObject port) |
static RuntimeException |
sockerr(Ruby runtime,
String msg) |
static IRubyObject |
unpack_sockaddr_in(ThreadContext context,
IRubyObject addr) |
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 int getPortFrom(ThreadContext context, IRubyObject _port)
public static int portToInt(IRubyObject port)
Copyright © 2001-2016 JRuby. All Rights Reserved.