Top Description Fields Constructors Methods
org.newsclub.net.unix

public final Class AFTIPCSocketImplExtensions

extends Object
implements AFSocketImplExtensions<AFTIPCSocketAddress>
Class Inheritance
All Implemented Interfaces
org.newsclub.net.unix.AFSocketImplExtensions
Imports
java.io.IOException, java.nio.charset.StandardCharsets

TIPC-specific code that resides in the native library. To be used by AFTIPCSocket and AFTIPCDatagramSocket only.
Author
Christian Kohlschütter

Field Summary

Modifier and TypeField and Description
private final AncillaryDataSupport

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public int[]

Returns:

The DestName.
getTIPCDestName
()

Returns the TIPC "DestName" data from the ancillary receive buffer.

public int[]

Returns:

The errinfo.
getTIPCErrInfo
()

Returns the TIPC "ErrInfo" data from the ancillary receive buffer.

public String

Returns:

The link name, or null if unsupported.
getTIPCLinkName
(int
The node hash.
peer
,
int
The bearer Id.
bearerId
)

Retrieves the TIPC link name given a node hash and bearer Id.

public byte[]

Returns:

The node identity, or null if unsupported.
getTIPCNodeId
(int
The node hash.
peer
)

Retrieves the 16-byte TIPC node identity given a node hash.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ancillaryDataSupportback to summary
private final AncillaryDataSupport ancillaryDataSupport

Constructor Detail

AFTIPCSocketImplExtensionsback to summary
pack-priv AFTIPCSocketImplExtensions(AncillaryDataSupport ancillaryDataSupport)

Method Detail

getTIPCDestNameback to summary
public int[] getTIPCDestName()

Returns the TIPC "DestName" data from the ancillary receive buffer. Invalid for any other use.

Returns:int[]

The DestName.

getTIPCErrInfoback to summary
public int[] getTIPCErrInfo()

Returns the TIPC "ErrInfo" data from the ancillary receive buffer. Invalid for any other use.

Returns:int[]

The errinfo.

getTIPCLinkNameback to summary
public String getTIPCLinkName(int peer, int bearerId) throws IOException

Retrieves the TIPC link name given a node hash and bearer Id.

Parameters
peer:int

The node hash.

bearerId:int

The bearer Id.

Returns:String

The link name, or null if unsupported.

Exceptions
IOException:
on error.
getTIPCNodeIdback to summary
public byte[] getTIPCNodeId(int peer) throws IOException

Retrieves the 16-byte TIPC node identity given a node hash.

Parameters
peer:int

The node hash.

Returns:byte[]

The node identity, or null if unsupported.

Exceptions
IOException:
on error.