Top Description Inners Fields Constructors Methods
org.eclipse.jgit.internal.transport.sshd.agent.connector

public final Class Sockets

extends Object
Class Inheritance
Imports
java.nio.charset.Charset, com.sun.jna.Structure, .Structure.FieldOrder

Common things for socket communication.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
Sockets.SockAddr

Very simple representation of the C SockAddr type.

Field Summary

Modifier and TypeField and Description
public static final int
AF_UNIX

Domain for Unix domain sockets.

public static final int
DEFAULT_PROTOCOL

Default protocol selector.

public static final int
SOCK_STREAM

Socket type for duplex sockets.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

AF_UNIXback to summary
public static final int AF_UNIX

Domain for Unix domain sockets.

DEFAULT_PROTOCOLback to summary
public static final int DEFAULT_PROTOCOL

Default protocol selector.

SOCK_STREAMback to summary
public static final int SOCK_STREAM

Socket type for duplex sockets.

Constructor Detail

Socketsback to summary
private Sockets()
org.eclipse.jgit.internal.transport.sshd.agent.connector back to summary

public Class Sockets.SockAddr

extends Structure
Class Inheritance
Annotations
@FieldOrder:sa_family, sa_data

Very simple representation of the C SockAddr type.

Field Summary

Modifier and TypeField and Description
private static final int
public byte[]
sa_data

Unix domain socket path.

public short
sa_family

Socket family

Inherited from com.sun.jna.Structure:
ALIGN_DEFAULTALIGN_GNUCALIGN_MSVCALIGN_NONECALCULATE_SIZE

Constructor Summary

AccessConstructor and Description
public
SockAddr(String
for the Socket
path
,
Charset
to use to decode the path to a byte sequence
encoding
)

Creates a new SockAddr for the given path.

Method Summary

Inherited from com.sun.jna.Structure:
allocateMemoryallocateMemoryautoAllocateautoReadautoReadautoWriteautoWritecacheTypeInfocalculateSizeclearcreateFieldsOrdercreateFieldsOrdercreateFieldsOrdercreateFieldsOrderdataEqualsdataEqualsensureAllocatedequalsfieldOffsetgetAutoReadgetAutoWritegetFieldListgetFieldOrdergetFieldsgetNativeAlignmentgetNativeSizegetNativeSizegetPointergetStringEncodinggetStructAlignmenthashCodenewInstancenewInstancereadreadFieldreadFieldsetAlignTypesetAutoReadsetAutoSynchsetAutoWritesetStringEncodingsizesortFieldstoArraytoArraytoStringtoStringuseMemoryuseMemorywritewriteFieldwriteFieldwriteField

Field Detail

MAX_DATA_LENGTHback to summary
private static final int MAX_DATA_LENGTH
sa_databack to summary
public byte[] sa_data

Unix domain socket path.

sa_familyback to summary
public short sa_family

Socket family

Constructor Detail

SockAddrback to summary
public SockAddr(String path, Charset encoding)

Creates a new SockAddr for the given path.

Parameters
path:String

for the Socket

encoding:Charset

to use to decode the path to a byte sequence