[Live-devel] RTP, change of the incoming PORT

Ross Finlayson finlayson at live555.com
Tue Feb 20 18:42:43 PST 2007


>When I tried to implemented changing of incoming port of the 
>RTPClinet in the similar way it does not work. Does anybody has any
>idea why it is not working?

It's because the "Groupsock::changeDestinationParameters()" function 
can only change the port (and/or address) that packets get sent *to*. 
There is currently no function available in the LIVE555 library that 
will let you change the port on which a 'groupsock' object *receives* 
data.

To do this, you would need to first get the socket number, by calling
	gs->socketNum()
and then calling "bind()" to bind to the new port.
-- 

Ross Finlayson
Live Networks, Inc.
http://www.live555.com/


More information about the live-devel mailing list