I'm creating an audio "client" using RTPSource. I have a custom MediaSink-derived class which takes the traffic and routes it to my computer's audio device. Works great.
What I'd like to do, however, is retrieve the sender's IP address (the IP address of the sender which is sending traffic to the port/ip as specified by my GroupSocks). How do I do this? I'm assuming from MyMediaSink? Apologies, I looked through sample code but didn't see anything... My client is built like this: MyMediaSink* blah = MyMediaSink::createNew(); ..... ..... Groupsock rtpGroupSock(*environment, address, rtpPort, 1); Groupsock rtcpGroupSock(*environment, address, rtcpPort, 1); ...... ..... RTPSource* rtpSource = SimpleRTPSource::createNew( *environment, &rtpGroupSock, payloadFormatCode, fSamplingFrequency, "audio/L16", 0, False /*no 'M' bit*/); ..... ..... RTCPInstance* rtcpInstance = RTCPInstance::createNew(*environment, &rtcpGroupSock, 5000, CNAME, NULL, rtpSource); ..... ..... sink->startPlaying(*rtpSource, afterPlaying, NULL); environment->taskScheduler().doEventLoop(); // does not return
_______________________________________________ live-devel mailing list live-devel@lists.live555.com http://lists.live555.com/mailman/listinfo/live-devel