Module org.jnetpcap
Package org.jnetpcap

Class SockAddr.InetSockAddr

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

public static final class SockAddr.InetSockAddr extends SockAddr
The structure of sockaddr_in, used for IPv4 sockets.
  • Method Details

    • address

      public byte[] address()
      IPv4 address.
      Returns:
      address field value
    • port

      public int port()
      Port number in network byte order.
      Returns:
      port field value
    • toString

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