Channel Selection Display
Tristan Leteurtre
tristan.leteurtre at videolan.org
Fri Oct 4 22:37:50 CEST 2002
On Thu, Oct 03, 2002, chusibau at netvigator.com wrote:
> How could I modify the codes to have a dynamic channel selection with
> specified names of channels instead of numbers like "1", "2", etc, in
> VLC after I've installed the VLCS and specified in VLC?
I don't understand very much your question and purpose, but if you want
to modify the communication method between vlc & vlcs, you should have a
look in src/misc/netutils.c for the vlc-part.
The core of this communication (the request) made by the vlc is in
src/misc/netutils.c:220 :
/* Build the message */
sprintf( psz_mess, "%d %u %lu %s \n", i_channel, VLCS_VERSION,
(unsigned long)(mdate() / (u64)1000000),
psz_mac );
/* Send the message */
send( i_fd, psz_mess, MESSAGE_LENGTH, 0 );
and the request is received and parsed with miniVLCS in
miniVLCS/vlcs.c:114 (from the network module of CVS)
if( (i_len = ip_socket->Receive( p_buffer, sizeof( p_buffer ))) < 0 )
{
(...)
}
p_buffer[i_len] = '\0';
if( sscanf( p_buffer, "%2s %d %d %17s", psz_channel, &i_version,
&i_time, psz_macad ) != 4 )
{
(...)
}
Maybe look here for implementation of what you want.
--
Tristan
Please answer to vlcs-devel at videolan.org and not to my personnal address
for further enquiries.
--
This is the vlcs-devel mailing-list, see http://www.videolan.org/vlcs/
To unsubscribe, please read http://www.videolan.org/lists.html
If you are in trouble, please contact <postmaster at videolan.org>
More information about the vlcs-devel
mailing list