> I create the replicator with the false option to avoid it deletes the input > Source when removing all replicas. > StreamReplicator::createNew(*env, Source, false) > > then create the source to feed it into the sink > FramedSource* source = replicator->createStreamReplica(); > > What would be the best way to remove a replica, knowing that we need to > create it again towards another port/address .
You delete a replica in the same way that you delete any other "Medium"-subclass object - by calling Medium::close(pointer-to-replica); > Using the > StreamReplicator::removeStreamReplica(*source) No, you can't call that, because it's a private function (used only in the implementation of these classes). Ross Finlayson Live Networks, Inc. http://www.live555.com/
_______________________________________________ live-devel mailing list live-devel@lists.live555.com http://lists.live555.com/mailman/listinfo/live-devel