Connection *c = ConnectionFactory::the().create("Multicast"); if(!c) { SLOG << "Unknown connection:"; }
Each connection type must be registered to the factory. This is done by static initialisation. The following example shows registration of the Multicast connection.
ConnectionType MulticastConnection::_type(&MulticastConnection::create, "Multicast");