<div>Hi,</div>
<div> </div>
<div>Sorry I found the answer you can ignore my previous mail. pf_block is being called in this way</div>
<div>in stream.c:</div>
<div>pf_block(p_access);</div>
<div> </div>
<div>in function AReadBlock which is in turn called in a for loop by AStreamPrebufferBlock.</div>
<div> </div>
<div>thanks</div>
<div>anand</div>
<div> </div>
<div> </div>
<div><br><br> </div>
<div><span class="gmail_quote">On 9/7/07, <b class="gmail_sendername">Anand Anand</b> <<a href="mailto:taknevski@gmail.com">taknevski@gmail.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<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><span class="sg">
<div>anand<br> </div></span>
<div><span class="e" id="q_114ddc68e092689f_2">
<div><span class="gmail_quote">On 9/7/07, <b class="gmail_sendername">Rémi Denis-Courmont</b> <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:rdenis@simphalempin.com" target="_blank">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 onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.remlab.net/" target="_blank">http://www.remlab.net/</a><br></blockquote></div><br></span></div></blockquote></div><br>