In a normal Babel RMI client program, the first thing that needs to be done is adding any protocols that the user plans to use to the ProtocolFactory. The ProtocolFactory is a mapping from protocol prefix that normally proceeds a URL, and the protocol's actual implementation. The only method the user ever needs to access is addProtocol.
static bool addProtocol( in string prefix, in string typeName );
addProtocol takes the protocol prefix and the fully qualified SIDL protocol typename. It returns TRUE on success. For example, normally the shortname for the ``Simple Protocol'' protocol is ``simhandle.'' So we would call the ProtocolFactory like this:
sidl_rmi__addProtocol(``simhandle'',''sidl.rmi.SimHandle'');
Now Babel RMI knows what to call when it encounters a URL prefixed by ``simhandle://''.