java.lang.Object
com.sun.jna.Structure
org.eclipse.jgit.internal.transport.sshd.agent.connector.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
    private static final int
     
    byte[]
    Unix domain socket path.
    short
    Socket family

    Fields inherited from class com.sun.jna.Structure

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

    Constructors
    Constructor
    Description
    SockAddr(String path, Charset encoding)
    Creates a new Sockets.SockAddr for the given path.
  • 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

    Methods inherited from class java.lang.Object

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

    • MAX_DATA_LENGTH

      private static final int MAX_DATA_LENGTH
      See Also:
    • sa_family

      public short sa_family
      Socket family
    • sa_data

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

    • 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