Class UnixDomainSocket

    • Method Detail

      • socket

        public static int socket​(int domain,
                                 int type,
                                 int protocol)
                          throws com.sun.jna.LastErrorException
        Throws:
        com.sun.jna.LastErrorException
      • connect

        public static int connect​(int sockfd,
                                  UnixDomainSocket.SockAddr sockaddr,
                                  int addrlen)
                           throws com.sun.jna.LastErrorException
        Throws:
        com.sun.jna.LastErrorException
      • recv

        public static int recv​(int fd,
                               byte[] buffer,
                               int count,
                               int flags)
                        throws com.sun.jna.LastErrorException
        Throws:
        com.sun.jna.LastErrorException
      • send

        public static int send​(int fd,
                               byte[] buffer,
                               int count,
                               int flags)
                        throws com.sun.jna.LastErrorException
        Throws:
        com.sun.jna.LastErrorException
      • close

        public static int close​(int fd)
                         throws com.sun.jna.LastErrorException
        Throws:
        com.sun.jna.LastErrorException
      • strerror

        public static String strerror​(int errno)
      • isConnected

        public boolean isConnected()
        Overrides:
        isConnected in class Socket
      • setTcpNoDelay

        public void setTcpNoDelay​(boolean b)
        Overrides:
        setTcpNoDelay in class Socket
      • setKeepAlive

        public void setKeepAlive​(boolean b)
        Overrides:
        setKeepAlive in class Socket
      • setSoLinger

        public void setSoLinger​(boolean b,
                                int i)
        Overrides:
        setSoLinger in class Socket
      • setSoTimeout

        public void setSoTimeout​(int timeout)
        Overrides:
        setSoTimeout in class Socket