public class SocketAPI
extends java.lang.Object
Constructor and Description |
---|
SocketAPI() |
Modifier and Type | Method and Description |
---|---|
UnixDomainSocketChannel |
accept(int fd) |
int |
allocateSocket() |
void |
bindToPath(int fd,
java.lang.String path) |
void |
close(int fd) |
UnixDomainSocketChannel |
connect(int fd,
java.lang.String path) |
void |
listen(int fd,
int queueLength) |
int |
recv(int fd,
java.nio.ByteBuffer dst,
int max,
int i) |
int |
send(int fd,
java.nio.ByteBuffer src,
int max,
int i) |
public int allocateSocket() throws java.io.IOException
java.io.IOException
public void bindToPath(int fd, java.lang.String path) throws java.io.IOException
java.io.IOException
public void close(int fd) throws java.io.IOException
java.io.IOException
public void listen(int fd, int queueLength) throws java.io.IOException
java.io.IOException
public UnixDomainSocketChannel accept(int fd) throws java.io.IOException
java.io.IOException
public UnixDomainSocketChannel connect(int fd, java.lang.String path) throws java.io.IOException
java.io.IOException
public int recv(int fd, java.nio.ByteBuffer dst, int max, int i) throws java.io.IOException
java.io.IOException
public int send(int fd, java.nio.ByteBuffer src, int max, int i) throws java.io.IOException
java.io.IOException
Copyright © 2021. All Rights Reserved.