[Live-devel] How to get other endpoint's IP address
Ross Finlayson
finlayson at live555.com
Wed Jun 15 17:05:57 PDT 2016
> Thanks for you feedback again. One question. I'm confused about the order of operations, then. You claim I should call .changeDestinationparameters() with the sender's IP on the rtcpGroupSock before invoking RTCPInstance::createNew() on said socket, but before receiving the sender's IP I need to get traffic from it, and before getting traffic, don't I need to have invoked RTCPInstance::createNew()?
Yes, I misspoke before. You can call “changeDestinationParameters()” on the ‘Groupsock’ object at any time. In your case, you’ll want to call it (on the RTCP groupsock) after you’ve gotten the source IP address and port, so that subsequent RTCP “RR”s will go to the right place.
Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
More information about the live-devel
mailing list