Class AFTIPCSocketImplExtensions

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 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

      public byte[] getTIPCNodeId(int peer) throws IOException
      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

      public String getTIPCLinkName(int peer, int bearerId) throws IOException
      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.