Class Sockets.SockAddr

  • Enclosing class:
    Sockets

    @FieldOrder({"sa_family","sa_data"})
    public static class Sockets.SockAddr
    extends com.sun.jna.Structure
    Very simple representation of the C SockAddr type.
    • 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.FieldOrder, com.sun.jna.Structure.StructField
    • Field Summary

      Fields 
      Modifier and Type Field Description
      byte[] sa_data
      Unix domain socket path.
      short sa_family
      Socket family
      • Fields inherited from class com.sun.jna.Structure

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

      • 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, getFieldOrder, getFields, getNativeAlignment, getNativeSize, getNativeSize, getPointer, getStringEncoding, getStructAlignment, hashCode, newInstance, newInstance, read, readField, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setStringEncoding, size, sortFields, toArray, toArray, toString, toString, useMemory, useMemory, write, writeField, writeField, writeField
    • Field Detail

      • sa_family

        public short sa_family
        Socket family
      • sa_data

        public byte[] sa_data
        Unix domain socket path.
    • Constructor Detail

      • SockAddr

        public SockAddr​(String path,
                        Charset encoding)
        Creates a new Sockets.SockAddr for the given path.
        Parameters:
        path - for the Socket
        encoding - to use to decode the path to a byte sequence