public class DMLibcSocket
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static short |
AF_UNIX |
static short |
SOCK_STREAM |
Constructor and Description |
---|
DMLibcSocket() |
Modifier and Type | Method and Description |
---|---|
static int |
accept(int s,
sockaddr_un addr,
com.sun.jna.ptr.IntByReference addrlen) |
static int |
bind(int s,
sockaddr_un name,
int namelen) |
static int |
close(int s) |
static int |
connect(int s,
sockaddr_un name,
int namelen) |
static int |
listen(int s,
int backlog) |
static int |
recv(int s,
java.nio.ByteBuffer buf,
int len,
int flags) |
static int |
send(int s,
java.nio.ByteBuffer msg,
int len,
int flags) |
static int |
socket(int domain,
int type,
int protocol) |
static java.lang.String |
strerror(int errno) |
public static final short AF_UNIX
public static final short SOCK_STREAM
public static int socket(int domain, int type, int protocol)
public static int connect(int s, sockaddr_un name, int namelen)
public static int bind(int s, sockaddr_un name, int namelen)
public static int listen(int s, int backlog)
public static int accept(int s, sockaddr_un addr, com.sun.jna.ptr.IntByReference addrlen)
public static int recv(int s, java.nio.ByteBuffer buf, int len, int flags)
public static int send(int s, java.nio.ByteBuffer msg, int len, int flags)
public static int close(int s)
public static java.lang.String strerror(int errno)
Copyright © 2021. All Rights Reserved.