Top Description Fields Constructors Methods
org.newsclub.net.unix

public final Enum AFSocketType

extends Enum<AFSocketType>
Class Inheritance

Describes the "type" of a socket.
Author
Christian Kohlschütter

Field Summary

Modifier and TypeField and Description
private final int
public static final AFSocketType
SOCK_DGRAM

Datagram-oriented socket.

public static final AFSocketType
SOCK_RAW

Raw mode.

public static final AFSocketType
SOCK_RDM

Reliably-delivered datagram messages.

public static final AFSocketType
SOCK_SEQPACKET

Sequential packet socket.

public static final AFSocketType
SOCK_STREAM

Stream-oriented socket.

Constructor Summary

AccessConstructor and Description
private
AFSocketType(int id)

Method Summary

Modifier and TypeMethod and Description
pack-priv int
public static AFSocketType
public static AFSocketType[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

idback to summary
private final int id
SOCK_DGRAMback to summary
public static final AFSocketType SOCK_DGRAM

Datagram-oriented socket. Usually permitting data loss (but not with AFUNIXSocket).

SOCK_RAWback to summary
public static final AFSocketType SOCK_RAW

Raw mode.

SOCK_RDMback to summary
public static final AFSocketType SOCK_RDM

Reliably-delivered datagram messages. Used by AFTIPCDatagramSocket to differentiate between datagram connects that may or may not permit package loss.

SOCK_SEQPACKETback to summary
public static final AFSocketType SOCK_SEQPACKET

Sequential packet socket.

SOCK_STREAMback to summary
public static final AFSocketType SOCK_STREAM

Stream-oriented socket.

Constructor Detail

AFSocketTypeback to summary
private AFSocketType(int id)

Method Detail

getIdback to summary
pack-priv int getId()
valueOfback to summary
public static AFSocketType valueOf(String name)
valuesback to summary
public static AFSocketType[] values()