java.lang.Object
org.newsclub.net.unix.AFTIPCSocketImplExtensions
- All Implemented Interfaces:
AFSocketImplExtensions<AFTIPCSocketAddress>
public final class AFTIPCSocketImplExtensions
extends Object
implements AFSocketImplExtensions<AFTIPCSocketAddress>
TIPC-specific code that resides in the native library. To be used by
AFTIPCSocket
and
AFTIPCDatagramSocket
only.- Author:
- Christian Kohlschütter
-
Method Summary
Modifier and TypeMethodDescriptionint[]
Returns the TIPC "DestName" data from the ancillary receive buffer.int[]
Returns the TIPC "ErrInfo" data from the ancillary receive buffer.getTIPCLinkName
(int peer, int bearerId) Retrieves the TIPC link name given a node hash and bearer Id.byte[]
getTIPCNodeId
(int peer) Retrieves the 16-byte TIPC node identity given a node hash.
-
Method Details
-
getTIPCErrInfo
public int[] getTIPCErrInfo()Returns the TIPC "ErrInfo" data from the ancillary receive buffer. Invalid for any other use.- Returns:
- The errinfo.
-
getTIPCDestName
public int[] getTIPCDestName()Returns the TIPC "DestName" data from the ancillary receive buffer. Invalid for any other use.- Returns:
- The DestName.
-
getTIPCNodeId
Retrieves the 16-byte TIPC node identity given a node hash.- Parameters:
peer
- The node hash.- Returns:
- The node identity, or
null
if unsupported. - Throws:
IOException
- on error.
-
getTIPCLinkName
Retrieves the TIPC link name given a node hash and bearer Id.- Parameters:
peer
- The node hash.bearerId
- The bearer Id.- Returns:
- The link name, or
null
if unsupported. - Throws:
IOException
- on error.
-