Top Description Fields Constructors Methods
io.netty5.channel.socket

public final Enum SocketProtocolFamily

extends Enum<SocketProtocolFamily>
implements ProtocolFamily
Class Inheritance
All Implemented Interfaces
java.net.ProtocolFamily
Imports
java.net.ProtocolFamily, .StandardProtocolFamily

ProtocolFamily implementation that is used by the different transport implementations.

Field Summary

Modifier and TypeField and Description
public static final SocketProtocolFamily
INET

IPv4

public static final SocketProtocolFamily
INET6

IPv6

public static final SocketProtocolFamily
UNIX

Unix Domain Socket

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static SocketProtocolFamily

Returns:

the SocketProtocolFamily.
of
(ProtocolFamily
the JDK ProtocolFamily to convert.
family
)

Return the SocketProtocolFamily for the given ProtocolFamily if possible.

public ProtocolFamily

Returns:

the JDK ProtocolFamily.
toJdkFamily
()

Return a ProtocolFamily that is "known" by the JDK itself and represent the same as SocketProtocolFamily.

public static SocketProtocolFamily
public static SocketProtocolFamily[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

INETback to summary
public static final SocketProtocolFamily INET

IPv4

INET6back to summary
public static final SocketProtocolFamily INET6

IPv6

UNIXback to summary
public static final SocketProtocolFamily UNIX

Unix Domain Socket

Constructor Detail

SocketProtocolFamilyback to summary
private SocketProtocolFamily()

Method Detail

ofback to summary
public static SocketProtocolFamily of(ProtocolFamily family)

Return the SocketProtocolFamily for the given ProtocolFamily if possible.

Parameters
family:ProtocolFamily

the JDK ProtocolFamily to convert.

Returns:SocketProtocolFamily

the SocketProtocolFamily.

Exceptions
UnsupportedOperationException:
if it can't be converted.
toJdkFamilyback to summary
public ProtocolFamily toJdkFamily()

Return a ProtocolFamily that is "known" by the JDK itself and represent the same as SocketProtocolFamily.

Returns:ProtocolFamily

the JDK ProtocolFamily.

Exceptions
UnsupportedOperationException:
if it can't be converted.
valueOfback to summary
public static SocketProtocolFamily valueOf(String name)
valuesback to summary
public static SocketProtocolFamily[] values()