<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><blockquote type="cite">I create the replicator with the false option to avoid it deletes the input Source when removing all replicas.  <br>StreamReplicator::createNew(*env, Source, false) <br><br>then create the source to feed it into the sink<br>
FramedSource* source = replicator->createStreamReplica();<br><br>What would be the best way to remove a replica, knowing that we need to create it again towards another port/address .<br></blockquote><div><br></div>You delete a replica in the same way that you delete any other "Medium"-subclass object - by calling</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>Medium::close(pointer-to-replica);</div><div><br></div><div><br><blockquote type="cite">Using the <br>StreamReplicator::removeStreamReplica(*source)</blockquote><div><br></div>No, you can't call that, because it's a private function (used only in the implementation of these classes).</div><br><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">Ross Finlayson<br>Live Networks, Inc.<br><a href="http://www.live555.com/">http://www.live555.com/</a></span></span>
</div>
<br></body></html>