Class StructAddrinfo


  • public final class StructAddrinfo
    extends Object
    Information returned/taken by getaddrinfo(3). Corresponds to C's struct addrinfo from <netdb.h> TODO: we currently only _take_ a StructAddrinfo; getaddrinfo returns an InetAddress[].
    • Field Detail

      • ai_flags

        public int ai_flags
        Flags describing the kind of lookup to be done. (Such as AI_ADDRCONFIG.)
      • ai_family

        public int ai_family
        Desired address family for results. (Such as AF_INET6 for IPv6. AF_UNSPEC means "any".)
      • ai_socktype

        public int ai_socktype
        Socket type. (Such as SOCK_DGRAM. 0 means "any".)
      • ai_protocol

        public int ai_protocol
        Protocol. (Such as IPPROTO_IPV6 IPv6. 0 means "any".)
    • Constructor Detail

      • StructAddrinfo

        public StructAddrinfo()
    • Method Detail

      • toString

        public String toString()
        Description copied from class: Object
        Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:
           getClass().getName() + '@' + Integer.toHexString(hashCode())

        See Writing a useful toString method if you intend implementing your own toString method.

        Overrides:
        toString in class Object
        Returns:
        a printable representation of this object.