|
|
ContentsOverview OverviewThe services Connections may be used, for example, by a remote bridge. DescriptionThe acceptor-service (or server) allows listening on a resource for clients to connect. The connector-service (or client) allows for connecting to a "listening resource". Both services support socket and pipe connections. Pipes work only on the same computer, as they use shared memory for data transfer. Sockets work in a tcp/ip network environment. The string, for the connect/accept calls, has the following format:
for example:
socket,host=localhost,port=2000
The connector component may be reused to initiate connections to multiple processes. The acceptor component may only be used to listen on one resource. Subsequent calls to the accept method must pass the same connection description string. Adding connection typesYou can add your own connection type by implementing a service with the name com.sun.star.connection.Connector.<connection-type> and com.sun.star.connection.Acceptor.<acceptor-type> , where connection-type is the name to be used, instead of socket.
|



