NetworkUtil

public class NetworkUtil

Class NetworkUtil. Provides networkutil functionality for the Hytale server.

java.lang.Object > NetworkUtil

Field Summary

networkInterfaces

final Enumeration networkInterfaces

Field networkInterfaces.

networkInterface

final NetworkInterface networkInterface

Field networkInterface.

inetAddresses

final Enumeration inetAddresses

Field inetAddresses.

inetAddress

final InetAddress inetAddress

Field inetAddress.

host

final String host

Field host.

localHost

final InetAddress localHost

Field localHost.

hostName

final String hostName

Field hostName.

en

final Enumeration en

Field en.

ni

final NetworkInterface ni

Field ni.

name

final String name

Field name.

e

final Enumeration e

Field e.

a

final InetAddress a

Field a.

hostAddress

final String hostAddress

Field hostAddress.

addressHostName

final String addressHostName

Field addressHostName.

canonicalHostName

final String canonicalHostName

Field canonicalHostName.

p

final Path p

Field p.

line

final String line

Field line.

lower

final String lower

Field lower.

ch

final char ch

Field ch.

Method Detail

getFirstNonLoopbackAddress

static InetAddress getFirstNonLoopbackAddress ()

Method getFirstNonLoopbackAddress.

getFirstAddressWith

static InetAddress getFirstAddressWith (final AddressType... include)

Method getFirstAddressWith.

Parameters:
final AddressType... include

getFirstAddressWithout

static InetAddress getFirstAddressWithout (final AddressType... include)

Method getFirstAddressWithout.

Parameters:
final AddressType... include

addressMatchesAll

static boolean addressMatchesAll (final InetAddress address, @Nonnull final AddressType... types)

Method addressMatchesAll.

Parameters:
final InetAddress address
@Nonnull final AddressType... types

addressMatchesAny

static boolean addressMatchesAny (final InetAddress address)

Method addressMatchesAny.

Parameters:
final InetAddress address

toSocketString

static String toSocketString (@Nonnull final InetSocketAddress address)

Method toSocketString.

Parameters:
@Nonnull final InetSocketAddress address

getHostName

static String getHostName ()

Method getHostName.

firstLineIfExists

static String firstLineIfExists (final String path)

Method firstLineIfExists.

Parameters:
final String path

isAcceptableHostName

static boolean isAcceptableHostName (@Nullable String name)

Method isAcceptableHostName.

Parameters:
@Nullable String name

isIPv4Literal

static boolean isIPv4Literal (@Nonnull final String name)

Method isIPv4Literal.

Parameters:
@Nonnull final String name

isLikelyIPv6Literal

static boolean isLikelyIPv6Literal (@Nonnull final String name)

Method isLikelyIPv6Literal.

Parameters:
@Nonnull final String name

if

public else if ((ch < '0' || ch > '9')

Method if.

Parameters:
(ch < '0' || ch > '9'

AddressType

public private AddressType (final Predicate predicate)

Method AddressType.

Parameters:
final Predicate predicate