20 INFO("Plug in the default protocol factory"); 21 gRs.pProtocolFactory = new DefaultProtocolFactory(); 22 ProtocolFactoryManager::RegisterProtocolFactory(gRs.pProtocolFactory);
代码如下: bool ProtocolFactoryManager::RegisterProtocolFactory(BaseProtocolFactory *pFactory) { ... 检查协议是否已注册; //1. Test to see if this factory is already registered //2. Test to see if the protocol chains exported by this factory are already in use //3. Test to see if the protocols exported by this factory are already in use