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
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:
-
XAcceptor
XConnection
XConnector
JavaLoader
-
Field Summary
Fields inherited from interface com.sun.star.connection.XAcceptor
UNOTYPEINFO
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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
Accepts a connection request via the described pipe.void
-
Field Details
-
__serviceName
The name of the service.The
JavaLoader
accesses this through reflection.- See Also:
-
-
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
), wheretype
should bepipe
(ignoring case). Supported keys (ignoring case) currently arehost
- 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 interfacecom.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 interfacecom.sun.star.connection.XAcceptor
- See Also:
-
XAcceptor.stopAccepting()
-