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.IOExceptionpublic void bindToPath(int fd,
                       java.lang.String path)
                throws java.io.IOException
java.io.IOExceptionpublic void close(int fd)
           throws java.io.IOException
java.io.IOExceptionpublic void listen(int fd,
                   int queueLength)
            throws java.io.IOException
java.io.IOExceptionpublic UnixDomainSocketChannel accept(int fd) throws java.io.IOException
java.io.IOExceptionpublic UnixDomainSocketChannel connect(int fd, java.lang.String path) throws java.io.IOException
java.io.IOExceptionpublic int recv(int fd,
                java.nio.ByteBuffer dst,
                int max,
                int i)
         throws java.io.IOException
java.io.IOExceptionpublic int send(int fd,
                java.nio.ByteBuffer src,
                int max,
                int i)
         throws java.io.IOException
java.io.IOExceptionCopyright © 2021. All Rights Reserved.