Does unicast need handshake before streaming?

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
kevintcore
Blank Cone
Blank Cone
Posts: 16
Joined: 28 Jul 2011 21:28

Does unicast need handshake before streaming?

Postby kevintcore » 09 Aug 2011 15:06

I have programs using VLC libraries that do 2 things. Both are working fine.
1) Transcode a wav file to muLaw and send a multicast stream to an ipaddress and port using rtp. The ipaddress sent to is a decoder.
2) Play a stream using http/ipaddress/path/filename.sdp where ipaddress is an encoder streaming to a multicast address and port.

I am trying to figure out what kind of changes / additional steps I need to make if I start using unicast addresses instead of multicast addresses.

From our understanding, multicast just spews out the stream onto the network regardless if anything is listening and anything that wishes can listen. But with unicast, you need somekind of handshake event before the streaming from one ipaddress:port to another can occur. In otherwords, something needs to listen for a packet, pull the ipaddress and port from that packet's header then it can begin sending / listening to the stream. Are we on track or off base? If we are on track, how might we go about implementing this? We would also like to be able to support DHCP addresses on our server and encoder / decoder devices.

Rémi Denis-Courmont
Developer
Developer
Posts: 15268
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Does unicast need handshake before streaming?

Postby Rémi Denis-Courmont » 09 Aug 2011 16:24

Noo. With unicast, it just spews the packets to the destination, regardless of whether the destination wants them.

However, if the destination does not want them, it will likely emit ICMP Port Unreachable errors, which might confuse the sender.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: Agushoki and 11 guests