Class Sockets.SockAddr
- 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.
-
-
Field Summary
Fields Modifier and Type Field Description private static int
MAX_DATA_LENGTH
byte[]
sa_data
Unix domain socket path.short
sa_family
Socket family
-
Constructor Summary
Constructors Constructor Description SockAddr(java.lang.String path, java.nio.charset.Charset encoding)
Creates a newSockets.SockAddr
for the givenpath
.
-
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
-
MAX_DATA_LENGTH
private static final int MAX_DATA_LENGTH
- See Also:
- Constant Field Values
-
sa_family
public short sa_family
Socket family
-
sa_data
public byte[] sa_data
Unix domain socket path.
-
-
Constructor Detail
-
SockAddr
public SockAddr(java.lang.String path, java.nio.charset.Charset encoding)
Creates a newSockets.SockAddr
for the givenpath
.- Parameters:
path
- for the Socketencoding
- to use to decode thepath
to a byte sequence
-
-