[snip] > A bridge for protocol xyz must be a UNO service implementation that > simultaneously supports the UNO service "com.sun.star.bridge.Bridge" and > the UNO service "com.sun.star.bridge.xyzBridge" (where the "xyz" part > can be any mixture of upper and lower case), see > remotebridges/source/factory/bridgefactory.cxx. > > What you found in services.rdb is the service implementation named > "com.sun.star.comp.remotebridges.Bridge.various" that happens to be the > only bridge implementation available in a default OOo. It happens to > support two protocols, "urp" and "iiop" (which is dead code). > > To introduce a bridge for a new protocol "urtp", you would either need > to write a UNO component that supports the UNO services > "com.sun.star.bridge.Bridge" and "com.sun.star.bridge.UrtpBridge" (see > the UNOIDL documentation of com.sun.star.bridge.Bridge, and the > Developer's Guide on general information about developing and deploying > UNO components). Or you hack your protocol into the existing > "com.sun.star.comp.remotebridges.Bridge.various" implementation, see > remotebridges/source/bridge/remote_bridge.cxx (since you want to re-use > the existing urp code, it might work to patch ORemoteBridge::initialize > so that if the protocol name in swProtocol is "urtp", you change it to > "urp"; swProtocol will contain the complete protocol string, consisting > of the protocol name followed by zero or more parameters of the form > ",KEY=VALUE"). > > -Stephan > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED]
Hi Stephan, thanks for the detailed answer, I think I will try both. If I remember correctly I found an example in the SDK1.1 for building uno components, I can use that and modify it. I have written a simple text filter that way, I hope it is something similar. The second alternative seems relative simple, because during my search for the place to add a new protocol I saw already the remotebriges directory and have looked at the ORemoteBridge::initialize code and know where to modify the code. - Arnulf --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
