Top Description Fields Constructors Methods
jnr.unixsocket

pack-priv final Class Common

extends Object
Class Inheritance
Imports
java.io.File, .IOException, java.net.SocketOption, java.nio.file.Files, java.util.Map, .HashMap, jnr.constants.platform.ProtocolFamily, .SocketLevel, jnr.ffi.Platform, .Platform.OS, jnr.ffi.byref.IntByReference

Helper class, providing common methods.

Field Summary

Modifier and TypeField and Description
private static Platform.OS
private static final Map<SocketOption<?>, SocketOption>
private static final Map<SocketOption<?>, SocketOption>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static UnixSocketAddress
bind(int fd, UnixSocketAddress local)

pack-priv static UnixSocketAddress
getpeername(int sockfd)

pack-priv static <T> T
getSocketOption(int fd, SocketOption<?> name)

pack-priv static UnixSocketAddress
getsockname(int sockfd)

pack-priv static void
setSocketOption(int fd, SocketOption<?> name, Object value)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

currentOSback to summary
private static Platform.OS currentOS
rMapback to summary
private static final Map<SocketOption<?>, SocketOption> rMap
wMapback to summary
private static final Map<SocketOption<?>, SocketOption> wMap

Constructor Detail

Commonback to summary
private Common()

Method Detail

bindback to summary
pack-priv static UnixSocketAddress bind(int fd, UnixSocketAddress local) throws IOException
getpeernameback to summary
pack-priv static UnixSocketAddress getpeername(int sockfd)
getSocketOptionback to summary
pack-priv static <T> T getSocketOption(int fd, SocketOption<?> name) throws IOException
getsocknameback to summary
pack-priv static UnixSocketAddress getsockname(int sockfd)
setSocketOptionback to summary
pack-priv static void setSocketOption(int fd, SocketOption<?> name, Object value) throws IOException