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
Represents an IPv4 socket address (sockaddr_in structure).

Native Structure


 struct sockaddr_in {
     uint8_t         sin_len;    // Length of structure (BSD only)
     sa_family_t     sin_family; // AF_INET
     in_port_t       sin_port;   // Transport layer port
     struct in_addr  sin_addr;   // IPv4 address
     char            sin_zero[8];// Padding to sockaddr size
 };