<div>Hi,</div>
<div> </div>
<div>Thanks immensely once again. I would be very grateful if you could tell me in which file and which function in the source code pf_block is being called repeatedly till EOF because I cant seem to find it.<br> </div>
<div>I understand the concept of callbacks --basically passing the function as an argument to another function... however i still think somewhere the callback function must still receive an argument.. I think it will be clear if I see the way pf_block is being called..
</div>
<div> </div>
<div>thanks</div>
<div>anand<br> </div>
<div><span class="gmail_quote">On 9/7/07, <b class="gmail_sendername">Rémi Denis-Courmont</b> <<a href="mailto:rdenis@simphalempin.com">rdenis@simphalempin.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Le jeudi 6 septembre 2007 18:13, Anand Anand a écrit:<br>> Thanks for the prompt reply. I understand that BlockUDP is called by
<br>> BlockPrebufferRTP in a for loop.. so for rtp streams the datagrams are<br>> being received datagram by datagram.. however for raw udp streams I dont<br>> see the recv function being called(BlockUDP) in a while or for loop? Am i
<br>> missing something?<br><br>pf_block is called repeatedly by LibVLC core input code until<br>the "end-of-file".<br><br>> Another question is regarding this statement:<br>> p_access->pf_block = BlockRTP
<br><br>> how is it that no arguments are being passed to the function? shouldnt<br>> p_access be passed as an argument to the function or where is it implied?<br><br>Hmm, this is a function pointer (pf_*), a.k.a. a callback. Do you know C
<br>language syntax?<br><br>> are the BlockRTP and BlockUDP functions being run continuously in a thread<br>> somewhere?<br><br>Basically, yes.<br><br>> is there some good book on vlc development?<br><br>No.<br><br>
--<br>Rémi Denis-Courmont<br><a href="http://www.remlab.net/">http://www.remlab.net/</a><br></blockquote></div><br>