Java io.netty.util NetUtil fields, constructors, methods, implement or subclass

Example usage for Java io.netty.util NetUtil fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for io.netty.util NetUtil.

The text is from its open source code.

Field

Inet4AddressLOCALHOST4
The Inet4Address that represents the IPv4 loopback address '127.0.0.1'
Inet6AddressLOCALHOST6
The Inet6Address that represents the IPv6 loopback address '::1'
InetAddressLOCALHOST
The InetAddress that represents the loopback address.
NetworkInterfaceLOOPBACK_IF
The loopback NetworkInterface of the current machine
intSOMAXCONN
The SOMAXCONN value of the current machine.

Method

StringbytesToIpAddress(byte[] bytes, int offset, int length)
Converts 4-byte or 16-byte data into an IPv4 or IPv6 string respectively.
byte[]createByteArrayFromIpAddressString(String ipAddressString)
Creates an byte[] based on an ipAddressString.
booleanisIpV4StackPreferred()
Returns true if IPv4 should be used even if the system supports both IPv4 and IPv6.
booleanisValidIpV4Address(CharSequence ip)
Takes a CharSequence and parses it to see if it is a valid IPV4 address.
booleanisValidIpV4Address(String ip)
Takes a String and parses it to see if it is a valid IPV4 address.
booleanisValidIpV6Address(String ip)
booleanisValidIpV6Address(CharSequence ip)