Module org.jnetpcap
Package org.jnetpcap

Class SockAddr.Inet6SockAddr

java.lang.Object
org.jnetpcap.SockAddr
org.jnetpcap.SockAddr.Inet6SockAddr
Enclosing class:
SockAddr

public static final class SockAddr.Inet6SockAddr extends SockAddr
The structure of sockaddr_in6, used for IPv6 sockets.
  • Method Details

    • address

      public byte[] address()
      IPv6 address.
      Returns:
      address field value
    • flowInfo

      public int flowInfo()
      IPv6 flow information.
      Returns:
      32 bit field value
    • port

      public int port()
      Transport layer port number.
      Returns:
      16 bit port field value
    • scopeId

      public int scopeId()
      Scope ID (interface for link-local addresses).
      Returns:
      32 bit scope ID field value
    • toString

      public String toString()
      String representation of the structure fields.
      Overrides:
      toString in class SockAddr
      Returns:
      the string
      See Also: