Class AFTIPCServerSocket

java.lang.Object
java.net.ServerSocket
org.newsclub.net.unix.AFServerSocket<org.newsclub.net.unix.AFTIPCSocketAddress>
org.newsclub.net.unix.tipc.AFTIPCServerSocket
All Implemented Interfaces:
Closeable, AutoCloseable, org.newsclub.net.unix.AFSomeSocketThing, org.newsclub.net.unix.FileDescriptorAccess

public final class AFTIPCServerSocket extends org.newsclub.net.unix.AFServerSocket<org.newsclub.net.unix.AFTIPCSocketAddress>
The server part of an AF_TIPC socket.
Author:
Christian Kohlschütter
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.newsclub.net.unix.AFServerSocket

    org.newsclub.net.unix.AFServerSocket.Constructor<A>
  • Method Summary

    Modifier and Type
    Method
    Description
     
    bindOn(org.newsclub.net.unix.AFTIPCSocketAddress addr)
    Returns a new AF_TIPC ServerSocket that is bound to the given AFTIPCSocketAddress.
    bindOn(org.newsclub.net.unix.AFTIPCSocketAddress addr, boolean deleteOnClose)
    Returns a new AF_TIPC ServerSocket that is bound to the given AFSocketAddress.
    forceBindOn(org.newsclub.net.unix.AFTIPCSocketAddress forceAddr)
    Returns a new, unbound AF_TIPC ServerSocket that will always bind to the given address, regardless of any socket address used in a call to bind.
     
    protected org.newsclub.net.unix.AFServerSocketChannel<org.newsclub.net.unix.AFTIPCSocketAddress>
     
    protected org.newsclub.net.unix.AFSocketImpl<org.newsclub.net.unix.AFTIPCSocketAddress>
     
    Returns a new, unbound AF_TIPC ServerSocket.
    protected org.newsclub.net.unix.AFSocket<org.newsclub.net.unix.AFTIPCSocketAddress>
     

    Methods inherited from class org.newsclub.net.unix.AFServerSocket

    addCloseable, addressFamily, bind, bind, bindHook, bindOn, bindOn, close, forceBindAddress, forceBindOn, getFileDescriptor, getInetAddress, getLocalPort, getLocalSocketAddress, getOption, getReceiveBufferSize, getReuseAddress, getSoTimeout, isBound, isClosed, isDeleteOnClose, isLocalSocketAddressValid, isSupported, newInstance, newInstance, removeCloseable, setDeleteOnClose, setOption, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setShutdownOnClose, setSoTimeout, supportedOptions, toString

    Methods inherited from class ServerSocket

    implAccept, setSocketFactory

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Method Details

    • newChannel

      protected org.newsclub.net.unix.AFServerSocketChannel<org.newsclub.net.unix.AFTIPCSocketAddress> newChannel()
      Specified by:
      newChannel in class org.newsclub.net.unix.AFServerSocket<org.newsclub.net.unix.AFTIPCSocketAddress>
    • getChannel

      public AFTIPCServerSocketChannel getChannel()
      Overrides:
      getChannel in class org.newsclub.net.unix.AFServerSocket<org.newsclub.net.unix.AFTIPCSocketAddress>
    • newInstance

      public static AFTIPCServerSocket newInstance() throws IOException
      Returns a new, unbound AF_TIPC ServerSocket.
      Returns:
      The new, unbound AFServerSocket.
      Throws:
      IOException - if the operation fails.
    • bindOn

      public static AFTIPCServerSocket bindOn(org.newsclub.net.unix.AFTIPCSocketAddress addr) throws IOException
      Returns a new AF_TIPC ServerSocket that is bound to the given AFTIPCSocketAddress.
      Parameters:
      addr - The socket file to bind to.
      Returns:
      The new, bound AFServerSocket.
      Throws:
      IOException - if the operation fails.
    • bindOn

      public static AFTIPCServerSocket bindOn(org.newsclub.net.unix.AFTIPCSocketAddress addr, boolean deleteOnClose) throws IOException
      Returns a new AF_TIPC ServerSocket that is bound to the given AFSocketAddress.
      Parameters:
      addr - The socket file to bind to.
      deleteOnClose - If true, the socket file (if the address points to a file) will be deleted upon AFServerSocket.close().
      Returns:
      The new, bound AFServerSocket.
      Throws:
      IOException - if the operation fails.
    • forceBindOn

      public static AFTIPCServerSocket forceBindOn(org.newsclub.net.unix.AFTIPCSocketAddress forceAddr) throws IOException
      Returns a new, unbound AF_TIPC ServerSocket that will always bind to the given address, regardless of any socket address used in a call to bind.
      Parameters:
      forceAddr - The address to use.
      Returns:
      The new, yet unbound AFServerSocket.
      Throws:
      IOException - if an exception occurs.
    • newImpl

      protected org.newsclub.net.unix.AFSocketImpl<org.newsclub.net.unix.AFTIPCSocketAddress> newImpl(FileDescriptor fdObj) throws SocketException
      Specified by:
      newImpl in class org.newsclub.net.unix.AFServerSocket<org.newsclub.net.unix.AFTIPCSocketAddress>
      Throws:
      SocketException
    • newSocketInstance

      protected org.newsclub.net.unix.AFSocket<org.newsclub.net.unix.AFTIPCSocketAddress> newSocketInstance() throws IOException
      Specified by:
      newSocketInstance in class org.newsclub.net.unix.AFServerSocket<org.newsclub.net.unix.AFTIPCSocketAddress>
      Throws:
      IOException
    • accept

      public AFTIPCSocket accept() throws IOException
      Overrides:
      accept in class org.newsclub.net.unix.AFServerSocket<org.newsclub.net.unix.AFTIPCSocketAddress>
      Throws:
      IOException