public class SocketUtils
extends java.lang.Object
Constructor and Description |
---|
SocketUtils() |
Modifier and Type | Method and Description |
---|---|
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)
|
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 |
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 java.lang.RuntimeException |
sockerr(Ruby runtime,
java.lang.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 IRubyObject getnameinfo(ThreadContext context, IRubyObject[] args)
public static IRubyObject ip_address_list(ThreadContext context)
public static java.net.InetAddress getRubyInetAddress(org.jruby.util.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 int getPortFrom(ThreadContext context, IRubyObject _port)
public static int portToInt(IRubyObject port)
Copyright © 2002-2009 JRuby Team. All Rights Reserved.