Class Win32V4NativeSocket

    • Constructor Detail

      • Win32V4NativeSocket

        public Win32V4NativeSocket​(int family,
                                   int type,
                                   int protocol,
                                   int listenPort)
                            throws Exception
        Throws:
        Exception
    • Method Detail

      • bind

        public int bind​(int socket,
                        sockaddr_in address,
                        int address_len)
                 throws com.sun.jna.LastErrorException
        Throws:
        com.sun.jna.LastErrorException
      • socket

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

        public int sendto​(int socket,
                          Buffer buffer,
                          int buflen,
                          int flags,
                          sockaddr_in dest_addr,
                          int dest_addr_len)
                   throws com.sun.jna.LastErrorException
        Throws:
        com.sun.jna.LastErrorException
      • recvfrom

        public int recvfrom​(int socket,
                            Buffer buffer,
                            int buflen,
                            int flags,
                            sockaddr_in in_addr,
                            int[] in_addr_len)
                     throws com.sun.jna.LastErrorException
        Throws:
        com.sun.jna.LastErrorException
      • closesocket

        public int closesocket​(int socket)
                        throws com.sun.jna.LastErrorException
        Throws:
        com.sun.jna.LastErrorException
      • close

        public int close​(int socket)
                  throws com.sun.jna.LastErrorException
        Throws:
        com.sun.jna.LastErrorException
      • setTrafficClass

        public void setTrafficClass​(int tc)
                             throws com.sun.jna.LastErrorException
        Specified by:
        setTrafficClass in class NativeDatagramSocket
        Throws:
        com.sun.jna.LastErrorException