| Modifier and Type | Class and Description |
|---|---|
| pack-priv static interface |
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final String | |
| private static final byte[] | |
| private static final byte[] | |
| public static final String | |
| private static final int | |
| private static final int | |
| private static final String | |
| private static final Pattern |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static AddressFamily | |
| public static void | buildAddrinfoList(ThreadContext context, IRubyObject[] args, boolean processLastArgAsReverse, SocketUtils.
|
| public static IRubyObject | |
| public static IRubyObject | getaddrinfo(final 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) |
| public static List | |
| private static String | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static int | |
| public static InetAddress | |
| public static InetAddress | |
| public static InetAddress | |
| public static InetAddress[] | |
| public static InetAddress[] | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static boolean | |
| pack-priv static SocketLevel | |
| pack-priv static SocketOption | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static int | |
| public static int | |
| pack-priv static ProtocolFamily | |
| pack-priv static Protocol | |
| public static RuntimeException | |
| public static RuntimeException | |
| pack-priv static Sock | |
| private static InetAddress | |
| public static RubyArray |
| ANY | back to summary |
|---|---|
| private static final String ANY | |
| BROADCAST | back to summary |
|---|---|
| private static final String BROADCAST | |
| INADDR_ANY | back to summary |
|---|---|
| private static final byte[] INADDR_ANY | |
| INADDR_BROADCAST | back to summary |
|---|---|
| private static final byte[] INADDR_BROADCAST | |
| IP_V4_MAPPED_ADDRESS_PREFIX | back to summary |
|---|---|
| public static final String IP_V4_MAPPED_ADDRESS_PREFIX | |
| IPV4_HOST_GROUP | back to summary |
|---|---|
| private static final int IPV4_HOST_GROUP | |
| IPV4_PORT_GROUP | back to summary |
|---|---|
| private static final int IPV4_PORT_GROUP | |
| ipv6LocalHost | back to summary |
|---|---|
| private static final String ipv6LocalHost | |
| STRING_IPV4_ADDRESS_PATTERN | back to summary |
|---|---|
| private static final Pattern STRING_IPV4_ADDRESS_PATTERN | |
| SocketUtils | back to summary |
|---|---|
| public SocketUtils() | |
| addressFamilyFromArg | back to summary |
|---|---|
| pack-priv static AddressFamily addressFamilyFromArg(ThreadContext context, IRubyObject domain) | |
| buildAddrinfoList | back to summary |
|---|---|
| public static void buildAddrinfoList(ThreadContext context, IRubyObject[] args, boolean processLastArgAsReverse, SocketUtils. | |
| getaddress | back to summary |
|---|---|
| public static IRubyObject getaddress(ThreadContext context, IRubyObject hostname) | |
| getaddrinfo | back to summary |
|---|---|
| public static IRubyObject getaddrinfo(final 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) | |
| getaddrinfoList | back to summary |
|---|---|
| public static List | |
| getHostAddress | back to summary |
|---|---|
| private static String getHostAddress(ThreadContext context, InetAddress addr, Boolean reverse) | |
| gethostbyaddr | back to summary |
|---|---|
| public static IRubyObject gethostbyaddr(ThreadContext context, IRubyObject[] args) | |
| gethostbyname | back to summary |
|---|---|
| public static IRubyObject gethostbyname(ThreadContext context, IRubyObject hostname) | |
| gethostname | back to summary |
|---|---|
| public static IRubyObject gethostname(ThreadContext context) | |
| getnameinfo | back to summary |
|---|---|
| public static IRubyObject getnameinfo(ThreadContext context, IRubyObject[] args) | |
| getPortFrom | back to summary |
|---|---|
| public static int getPortFrom(ThreadContext context, IRubyObject _port) | |
| getRubyInetAddress | back to summary |
|---|---|
| public static InetAddress getRubyInetAddress(String addressString) throws UnknownHostException | |
| getRubyInetAddress | back to summary |
|---|---|
| public static InetAddress getRubyInetAddress(String host, String node) throws UnknownHostException | |
| getRubyInetAddress | back to summary |
|---|---|
| public static InetAddress getRubyInetAddress(byte[] addressBytes) throws UnknownHostException | |
| getRubyInetAddresses | back to summary |
|---|---|
| public static InetAddress[] getRubyInetAddresses(ByteList address) throws UnknownHostException
Deprecated
| |
| getRubyInetAddresses | back to summary |
|---|---|
| public static InetAddress[] getRubyInetAddresses(String addressString) throws UnknownHostException | |
| getservbyname | back to summary |
|---|---|
| public static IRubyObject getservbyname(ThreadContext context, IRubyObject[] args) | |
| ip_address_list | back to summary |
|---|---|
| public static IRubyObject ip_address_list(ThreadContext context) | |
| isIPV4MappedAddressPrefix | back to summary |
|---|---|
| public static boolean isIPV4MappedAddressPrefix(String address) | |
| levelFromArg | back to summary |
|---|---|
| pack-priv static SocketLevel levelFromArg(ThreadContext context, IRubyObject level) | |
| optionFromArg | back to summary |
|---|---|
| pack-priv static SocketOption optionFromArg(ThreadContext context, IRubyObject opt) | |
| pack_sockaddr_in | back to summary |
|---|---|
| public static IRubyObject pack_sockaddr_in(ThreadContext context, IRubyObject port, IRubyObject host)
Deprecated
| |
| pack_sockaddr_un | back to summary |
|---|---|
| public static IRubyObject pack_sockaddr_un(ThreadContext context, IRubyObject filename)
Deprecated
| |
| portToInt | back to summary |
|---|---|
| public static int portToInt(IRubyObject port)
Deprecated since 10.0.
| |
| portToInt | back to summary |
|---|---|
| public static int portToInt(ThreadContext context, IRubyObject port) | |
| protocolFamilyFromArg | back to summary |
|---|---|
| pack-priv static ProtocolFamily protocolFamilyFromArg(ThreadContext context, IRubyObject protocol) | |
| protocolFromArg | back to summary |
|---|---|
| pack-priv static Protocol protocolFromArg(ThreadContext context, IRubyObject protocol) | |
| sockerr | back to summary |
|---|---|
| public static RuntimeException sockerr(Ruby runtime, String msg) | |
| sockerr_with_trace | back to summary |
|---|---|
| public static RuntimeException sockerr_with_trace(Ruby runtime, String msg, StackTraceElement[] trace) | |
| sockFromArg | back to summary |
|---|---|
| pack-priv static Sock sockFromArg(ThreadContext context, IRubyObject type) | |
| specialAddress | back to summary |
|---|---|
| private static InetAddress specialAddress(String addressString) throws UnknownHostException | |
| unpack_sockaddr_in | back to summary |
|---|---|
| public static RubyArray Deprecated
| |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| addrinfo | back to summary |
|---|---|
| public void addrinfo(InetAddress address, int port, Sock sock, Boolean reverse, boolean usesCanonical) | |