public class NGUnixDomainSocketLibrary extends 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_RDWR |
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 |
connect(int fd,
NGUnixDomainSocketLibrary.SockaddrUn address,
int addressLen) |
static int |
listen(int fd,
int backlog) |
static int |
read(int fd,
ByteBuffer buffer,
int count) |
static int |
shutdown(int fd,
int how) |
static int |
socket(int domain,
int type,
int protocol) |
static int |
unlink(String socketFile) |
static int |
write(int fd,
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 final int SHUT_RDWR
public static int socket(int domain, int type, int protocol) throws com.sun.jna.LastErrorException
com.sun.jna.LastErrorException
public static int bind(int fd, NGUnixDomainSocketLibrary.SockaddrUn address, int addressLen) throws com.sun.jna.LastErrorException
com.sun.jna.LastErrorException
public static int listen(int fd, int backlog) throws com.sun.jna.LastErrorException
com.sun.jna.LastErrorException
public static int connect(int fd, NGUnixDomainSocketLibrary.SockaddrUn address, int addressLen) throws com.sun.jna.LastErrorException
com.sun.jna.LastErrorException
public static int accept(int fd, NGUnixDomainSocketLibrary.SockaddrUn address, com.sun.jna.ptr.IntByReference addressLen) throws com.sun.jna.LastErrorException
com.sun.jna.LastErrorException
public static int read(int fd, ByteBuffer buffer, int count) throws com.sun.jna.LastErrorException
com.sun.jna.LastErrorException
public static int write(int fd, ByteBuffer buffer, int count) throws com.sun.jna.LastErrorException
com.sun.jna.LastErrorException
public static int close(int fd) throws com.sun.jna.LastErrorException
com.sun.jna.LastErrorException
public static int shutdown(int fd, int how) throws com.sun.jna.LastErrorException
com.sun.jna.LastErrorException
public static int unlink(String socketFile)
Copyright © 2024. All rights reserved.