Class bsd_sockaddr_in


  • public class bsd_sockaddr_in
    extends com.sun.jna.Structure
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.sun.jna.Structure

        com.sun.jna.Structure.ByReference, com.sun.jna.Structure.ByValue, com.sun.jna.Structure.StructField
    • Field Summary

      Fields 
      Modifier and Type Field Description
      byte[] sin_addr  
      byte sin_family  
      byte sin_len  
      byte[] sin_port  
      byte[] sin_zero  
      • Fields inherited from class com.sun.jna.Structure

        ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.net.InetAddress getAddress()  
      protected java.util.List<java.lang.String> getFieldOrder()  
      int getPort()  
      void setAddress​(java.net.InetAddress address)  
      void setPort​(int port)  
      • Methods inherited from class com.sun.jna.Structure

        allocateMemory, allocateMemory, autoAllocate, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, calculateSize, clear, createFieldsOrder, createFieldsOrder, createFieldsOrder, createFieldsOrder, dataEquals, dataEquals, ensureAllocated, equals, fieldOffset, getAutoRead, getAutoWrite, getFieldList, getFields, getNativeAlignment, getNativeSize, getNativeSize, getPointer, getStringEncoding, getStructAlignment, hashCode, newInstance, newInstance, read, readField, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setFieldOrder, setStringEncoding, size, sortFields, toArray, toArray, toString, toString, useMemory, useMemory, write, writeField, writeField, writeField
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • sin_len

        public byte sin_len
      • sin_family

        public byte sin_family
      • sin_port

        public byte[] sin_port
      • sin_addr

        public byte[] sin_addr
      • sin_zero

        public byte[] sin_zero
    • Constructor Detail

      • bsd_sockaddr_in

        public bsd_sockaddr_in​(int family,
                               byte[] addr,
                               byte[] port)
      • bsd_sockaddr_in

        public bsd_sockaddr_in()
      • bsd_sockaddr_in

        public bsd_sockaddr_in​(java.net.InetAddress address,
                               int port)
      • bsd_sockaddr_in

        public bsd_sockaddr_in​(int port)
    • Method Detail

      • getFieldOrder

        protected java.util.List<java.lang.String> getFieldOrder()
        Specified by:
        getFieldOrder in class com.sun.jna.Structure
      • getAddress

        public java.net.InetAddress getAddress()
      • setAddress

        public void setAddress​(java.net.InetAddress address)
      • getPort

        public int getPort()
      • setPort

        public void setPort​(int port)