Class pipeAcceptor

java.lang.Object
com.sun.star.lib.connections.pipe.pipeAcceptor
All Implemented Interfaces:
com.sun.star.connection.XAcceptor, com.sun.star.uno.XInterface

public final class pipeAcceptor extends Object implements com.sun.star.connection.XAcceptor
A component that implements the XAcceptor interface.

The pipeAcceptor is a specialized component that uses TCP pipes for communication. The pipeAcceptor is generally used by the com.sun.star.connection.Acceptor service.

Since:
UDK 1.0
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The name of the service.

    Fields inherited from interface com.sun.star.connection.XAcceptor

    UNOTYPEINFO
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static com.sun.star.lang.XSingleServiceFactory
    __getServiceFactory(String implName, com.sun.star.lang.XMultiServiceFactory multiFactory, com.sun.star.registry.XRegistryKey regKey)
    Returns a factory for creating the service.
    com.sun.star.connection.XConnection
    accept(String connectionDescription)
    Accepts a connection request via the described pipe.
    void
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • pipeAcceptor

      public pipeAcceptor()
  • Method Details

    • __getServiceFactory

      public static com.sun.star.lang.XSingleServiceFactory __getServiceFactory(String implName, com.sun.star.lang.XMultiServiceFactory multiFactory, com.sun.star.registry.XRegistryKey regKey)
      Returns a factory for creating the service.

      This method is called by the JavaLoader.

      Parameters:
      implName - the name of the implementation for which a service is requested.
      multiFactory - the service manager to be used (if needed).
      regKey - the registry key.
      Returns:
      an XSingleServiceFactory for creating the component.
      See Also:
    • accept

      public com.sun.star.connection.XConnection accept(String connectionDescription) throws com.sun.star.connection.AlreadyAcceptingException, com.sun.star.connection.ConnectionSetupException, com.sun.star.lang.IllegalArgumentException
      Accepts a connection request via the described pipe.

      This call blocks until a connection has been established.

      The connection description has the following format: type*(key=value), where type should be pipe (ignoring case). Supported keys (ignoring case) currently are

      host
      The name or address of the accepting interface (defaults to 0, meaning any interface).
      port
      The TCP port number to accept on (defaults to 6001).
      backlog
      The maximum length of the acceptor's queue (defaults to 50).
      tcpnodelay
      A flag (0/1) enabling or disabling Nagle's algorithm on the resulting connection.
      Specified by:
      accept in interface com.sun.star.connection.XAcceptor
      Parameters:
      connectionDescription - the description of the connection.
      Returns:
      an XConnection to the client.
      Throws:
      com.sun.star.connection.AlreadyAcceptingException
      com.sun.star.connection.ConnectionSetupException
      com.sun.star.lang.IllegalArgumentException
      See Also:
      • XConnection
      • XConnector
    • stopAccepting

      public void stopAccepting()
      Specified by:
      stopAccepting in interface com.sun.star.connection.XAcceptor
      See Also:
      • XAcceptor.stopAccepting()