public class NGUnixDomainSocketLibrary
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
NGUnixDomainSocketLibrary.SockaddrUn
Bridges
struct sockaddr_un to and from native code. |
| Modifier and Type | Field and Description |
|---|---|
static int |
AF_LOCAL |
static int |
PF_LOCAL |
static int |
SHUT_RD |
static int |
SHUT_WR |
static int |
SOCK_STREAM |
| Modifier and Type | Method and Description |
|---|---|
static int |
accept(int fd,
NGUnixDomainSocketLibrary.SockaddrUn address,
com.sun.jna.ptr.IntByReference addressLen) |
static int |
bind(int fd,
NGUnixDomainSocketLibrary.SockaddrUn address,
int addressLen) |
static int |
close(int fd) |
static int |
listen(int fd,
int backlog) |
static int |
read(int fd,
java.nio.ByteBuffer buffer,
int count) |
static int |
shutdown(int fd,
int how) |
static int |
socket(int domain,
int type,
int protocol) |
static int |
write(int fd,
java.nio.ByteBuffer buffer,
int count) |
public static final int PF_LOCAL
public static final int AF_LOCAL
public static final int SOCK_STREAM
public static final int SHUT_RD
public static final int SHUT_WR
public static int socket(int domain,
int type,
int protocol)
throws com.sun.jna.LastErrorException
com.sun.jna.LastErrorExceptionpublic static int bind(int fd,
NGUnixDomainSocketLibrary.SockaddrUn address,
int addressLen)
throws com.sun.jna.LastErrorException
com.sun.jna.LastErrorExceptionpublic static int listen(int fd,
int backlog)
throws com.sun.jna.LastErrorException
com.sun.jna.LastErrorExceptionpublic static int accept(int fd,
NGUnixDomainSocketLibrary.SockaddrUn address,
com.sun.jna.ptr.IntByReference addressLen)
throws com.sun.jna.LastErrorException
com.sun.jna.LastErrorExceptionpublic static int read(int fd,
java.nio.ByteBuffer buffer,
int count)
throws com.sun.jna.LastErrorException
com.sun.jna.LastErrorExceptionpublic static int write(int fd,
java.nio.ByteBuffer buffer,
int count)
throws com.sun.jna.LastErrorException
com.sun.jna.LastErrorExceptionpublic static int close(int fd)
throws com.sun.jna.LastErrorException
com.sun.jna.LastErrorExceptionpublic static int shutdown(int fd,
int how)
throws com.sun.jna.LastErrorException
com.sun.jna.LastErrorException