[vlc-devel] net_Read in modules/access/udp.c and __net_Read in src/network/udp.c
Rémi Denis-Courmont
rdenis at simphalempin.com
Thu Sep 6 19:19:05 CEST 2007
Le jeudi 6 septembre 2007 18:13, Anand Anand a écrit :
> Thanks for the prompt reply. I understand that BlockUDP is called by
> BlockPrebufferRTP in a for loop.. so for rtp streams the datagrams are
> being received datagram by datagram.. however for raw udp streams I dont
> see the recv function being called(BlockUDP) in a while or for loop? Am i
> missing something?
pf_block is called repeatedly by LibVLC core input code until
the "end-of-file".
> Another question is regarding this statement:
> p_access->pf_block = BlockRTP
> how is it that no arguments are being passed to the function? shouldnt
> p_access be passed as an argument to the function or where is it implied?
Hmm, this is a function pointer (pf_*), a.k.a. a callback. Do you know C
language syntax?
> are the BlockRTP and BlockUDP functions being run continuously in a thread
> somewhere?
Basically, yes.
> is there some good book on vlc development?
No.
--
Rémi Denis-Courmont
http://www.remlab.net/
More information about the vlc-devel
mailing list