Top Inners Fields Constructors Methods
jnr.unixsocket

pack-priv Class Native

extends Object
Class Inheritance
Imports
java.io.IOException, java.nio.ByteBuffer, .ByteOrder, jnr.constants.platform.Errno, .ProtocolFamily, .Sock, .SocketLevel, .SocketOption, jnr.ffi.LastError, .LibraryLoader, .Platform, .Pointer, .Runtime, .Struct, jnr.ffi.annotations.In, .Out, .Transient, jnr.ffi.byref.IntByReference, jnr.ffi.types.size_t, .ssize_t, jnr.posix.DefaultNativeTimeval, .Timeval

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface

Field Summary

Modifier and TypeField and Description
pack-priv static final Native.LibC
pack-priv static final String[]

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv static int
accept(int fd, SockAddrUnix addr, IntByReference len)

pack-priv static int
bind(int fd, SockAddrUnix addr, int len)

pack-priv static int
connect(int fd, SockAddrUnix addr, int len)

public static boolean
getboolsockopt(int s, SocketLevel level, int optname)

pack-priv static Errno
pack-priv static String
public static int
getsockopt(int s, SocketLevel level, int optname)

public static int
getsockopt(int s, SocketLevel level, SocketOption optname, Struct data)

pack-priv static final Native.LibC
libc()

pack-priv static final Native.LibC
pack-priv static int
listen(int fd, int backlog)

public static int
recvfrom(int fd, ByteBuffer dst, SockAddrUnix addr)

public static int
sendto(int fd, ByteBuffer src, SockAddrUnix addr, int len)

public static void
setBlocking(int fd, boolean block)

public static int
setsockopt(int s, SocketLevel level, SocketOption optname, boolean optval)

public static int
setsockopt(int s, SocketLevel level, SocketOption optname, int optval)

pack-priv static int
socket(ProtocolFamily domain, Sock type, int protocol)

pack-priv static int
socketpair(ProtocolFamily domain, Sock type, int protocol, int[] sv)

pack-priv static String
strerror(int error)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
pack-priv static final Native.LibC INSTANCE
libnamesback to summary
pack-priv static final String[] libnames

Constructor Detail

Nativeback to summary
pack-priv Native()

Method Detail

acceptback to summary
pack-priv static int accept(int fd, SockAddrUnix addr, IntByReference len)
bindback to summary
pack-priv static int bind(int fd, SockAddrUnix addr, int len)
connectback to summary
pack-priv static int connect(int fd, SockAddrUnix addr, int len)
getboolsockoptback to summary
public static boolean getboolsockopt(int s, SocketLevel level, int optname)
getLastErrorback to summary
pack-priv static Errno getLastError()
getLastErrorStringback to summary
pack-priv static String getLastErrorString()
getsockoptback to summary
public static int getsockopt(int s, SocketLevel level, int optname)
getsockoptback to summary
public static int getsockopt(int s, SocketLevel level, SocketOption optname, Struct data)
libcback to summary
pack-priv static final Native.LibC libc()
libsocketback to summary
pack-priv static final Native.LibC libsocket()
listenback to summary
pack-priv static int listen(int fd, int backlog)
recvfromback to summary
public static int recvfrom(int fd, ByteBuffer dst, SockAddrUnix addr) throws IOException
sendtoback to summary
public static int sendto(int fd, ByteBuffer src, SockAddrUnix addr, int len) throws IOException
setBlockingback to summary
public static void setBlocking(int fd, boolean block)
setsockoptback to summary
public static int setsockopt(int s, SocketLevel level, SocketOption optname, boolean optval)
setsockoptback to summary
public static int setsockopt(int s, SocketLevel level, SocketOption optname, int optval)
socketback to summary
pack-priv static int socket(ProtocolFamily domain, Sock type, int protocol) throws IOException
socketpairback to summary
pack-priv static int socketpair(ProtocolFamily domain, Sock type, int protocol, int[] sv) throws IOException
strerrorback to summary
pack-priv static String strerror(int error)
jnr.unixsocket back to summary

public Interface Native.LibC


Field Summary

Modifier and TypeField and Description
public static final int
public static final int
public static final int

Method Summary

Modifier and TypeMethod and Description
public int
accept(int fd, SockAddrUnix addr, IntByReference len)

public int
bind(int fd, SockAddrUnix addr, int len)

public int
connect(int s, SockAddrUnix name, int namelen)

public int
fcntl(int fd, int cmd, int data)

public int
public int
public int
getsockopt(int s, int level, int optname, ByteBuffer optval, IntByReference optlen)

public int
getsockopt(int s, int level, int optname, Timeval optval, IntByReference optlen)

public int
listen(int fd, int backlog)

public int
recvfrom(int s, ByteBuffer data, long size, int flags, SockAddrUnix addr, IntByReference len)

public int
sendto(int s, ByteBuffer data, long size, int flags, SockAddrUnix name, int namelen)

public int
setsockopt(int s, int level, int optname, ByteBuffer optval, int optlen)

public int
setsockopt(int s, int level, int optname, Timeval optval, int optlen)

public int
socket(int domain, int type, int protocol)

public int
socketpair(int domain, int type, int protocol, int[] sv)

public String
strerror(int error)

Field Detail

F_GETFLback to summary
public static final int F_GETFL
F_SETFLback to summary
public static final int F_SETFL
O_NONBLOCKback to summary
public static final int O_NONBLOCK

Method Detail

acceptback to summary
public int accept(int fd, SockAddrUnix addr, IntByReference len)
bindback to summary
public int bind(int fd, SockAddrUnix addr, int len)
connectback to summary
public int connect(int s, SockAddrUnix name, int namelen)
fcntlback to summary
public int fcntl(int fd, int cmd, int data)
getpeernameback to summary
public int getpeername(int fd, SockAddrUnix addr, IntByReference len)
getsocknameback to summary
public int getsockname(int fd, SockAddrUnix addr, IntByReference len)
getsockoptback to summary
public int getsockopt(int s, int level, int optname, ByteBuffer optval, IntByReference optlen)
getsockoptback to summary
public int getsockopt(int s, int level, int optname, Timeval optval, IntByReference optlen)
listenback to summary
public int listen(int fd, int backlog)
recvfromback to summary
public int recvfrom(int s, ByteBuffer data, long size, int flags, SockAddrUnix addr, IntByReference len)
Annotations
@ssize_t
sendtoback to summary
public int sendto(int s, ByteBuffer data, long size, int flags, SockAddrUnix name, int namelen)
Annotations
@ssize_t
setsockoptback to summary
public int setsockopt(int s, int level, int optname, ByteBuffer optval, int optlen)
setsockoptback to summary
public int setsockopt(int s, int level, int optname, Timeval optval, int optlen)
socketback to summary
public int socket(int domain, int type, int protocol)
socketpairback to summary
public int socketpair(int domain, int type, int protocol, int[] sv)
strerrorback to summary
public String strerror(int error)