Class NGUnixDomainSocketLibrary.SockaddrUn

java.lang.Object
com.sun.jna.Structure
com.martiansoftware.nailgun.NGUnixDomainSocketLibrary.SockaddrUn
All Implemented Interfaces:
com.sun.jna.Structure.ByReference
Enclosing class:
NGUnixDomainSocketLibrary

public static class NGUnixDomainSocketLibrary.SockaddrUn extends com.sun.jna.Structure implements com.sun.jna.Structure.ByReference
Bridges struct sockaddr_un to and from native code.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    On BSD platforms, sunLenAndFamily will be present.
    static class 
    On BSD platforms, the sun_len and sun_family values in struct sockaddr_un.

    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[]
     

    Fields inherited from class com.sun.jna.Structure

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

    Constructors
    Constructor
    Description
    Constructs an empty struct sockaddr_un.
    Constructs a struct sockaddr_un with a path whose bytes are encoded using the default encoding of the platform.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected List
     

    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, 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 Details

  • Constructor Details

    • SockaddrUn

      public SockaddrUn()
      Constructs an empty struct sockaddr_un.
    • SockaddrUn

      public SockaddrUn(String path) throws IOException
      Constructs a struct sockaddr_un with a path whose bytes are encoded using the default encoding of the platform.
      Throws:
      IOException
  • Method Details

    • getFieldOrder

      protected List getFieldOrder()
      Overrides:
      getFieldOrder in class com.sun.jna.Structure