[vlc-devel] [PATCH] Advertise the HTTP interface using Avahi

Rob rob at hobbyistsoftware.com
Sun Sep 18 03:43:25 CEST 2011

akash mehrotra <mehrotra.akash at gmail.com> a écrit :

>> +    char *psz_name = "VLC HTTP Interface";
>> +    char *psz_stype = "_http._tcp";
>> +    char *psz_txt = "VLC HTTP Interface";

name should be the name of the computer/workstation rather than a constant.
that way when there are multiple computers running VLC on the network, the  
client knows which one he/she is connecting to.
this is standard practice (occasionally other services use other  
semi-unique keys for the name).

I assume that psz_txt is the txt record.
This is normally a dictionary, but can be ignored (set to null) in this  
case. Alternatively it could be used to pass useful info like version=<vlc  

s-type should be a custom type like _vlc-http._tcp this is a pretty  
specialized http server and the point here is to identify it as a vlc http  

psz_stype and psz_txt could usefully be sent as variables from the calling  
At the moment, this whole module is set up for a single use-case of  
advertising the http interface, but it could possibly be used for other  
things too.



More information about the vlc-devel mailing list