[vlc-devel] Re: [PATCH] Set TOS field - UDP streaming
rdenis at simphalempin.com
Mon Sep 4 12:07:35 CEST 2006
Selon Anders Theodorsen <anders.theodorsen at gmail.com>:
> If I do it IPv6 compatible by setting the TOS / Traffic field
> respectively and also pass the parameter to the network core in a
> better way is it possible to have it accepted?
Most likely. We've had other people requesting this feature.
> How do you recommend I pass the parameter to the network core? As an
> additional parameter in the function declaration?
I'm not too fond of adding a new parameter because it will break both source
and binary compatibility. Maybe adding an extra int net_SetDSCP( int fd, int
dscp ); function would do. You can find the address family by calling
getsockname on the file descriptor. I'm just not sure if it is still possible
to set the DSCP after connect() as been called - should be ok for UDP, but
might suck with TCP (and SCTP and DCCP, if we ever implement them).
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html
More information about the vlc-devel