[vlc-devel] Network functions for use in a module
Alexander Adolf
alexander.adolf at condition-alpha.com
Wed Feb 19 17:59:15 CET 2014
Dear Rémi,
On 2014-02-18, at 23:01 , Rémi Denis-Courmont <remi at remlab.net> wrote:
> Le mardi 18 février 2014, 22:46:59 Alexander Adolf a écrit :
>> Is there any prior art in the VLC tree I could use?
>>
>> There is a HTTP client in modules/access/http.c. How would I use that from
>> my own module?
>
> If you do not need custom headers, you can use stream_UrlNew() and friends
> from <vlc_stream.h>. There are already a bunch of examples in the code.
>
> If however you need custom headers, there is no helper yet, though someone is
> working on it.
Many thanks for the pointer. I'll check that out. I don't need custom headers, btw.
> For a DNS request, I'll likely nee to roll my own?
>
> So far VLC only makes "normal" A/AAAA queries, using getaddrinfo(). But I
> infer you want another RR type? In that case, I would advise trying
> res_search() from <resolv.h> but it might be cumbersome. Otherwise use a
> dedicated DNS library, like c-ares.
> [...]
Sorry for creating confusion. Just realised that DNS SD is a well known acronym for a part of Bonjour/Zeroconf.
I want to query DNS for an SRV record.
Many thanks and cheers,
--alexander
More information about the vlc-devel
mailing list