On Mon, Nov 7, 2016 at 6:07 PM, Ross Finlayson <finlay...@live555.com>
wrote:

> > In order to get better performance over WIFI when doing RTP over TCP
> interleaved, I am setting the IP TOS field to "expedited forwarding" and I
> am doing that in the following function:
> >
>

If you don't want to mess with the code, and if you are using Linux, you
can use iptables to set the tos field:

iptables -v -A OUTPUT -t mangle -m owner --uid-owner totolos -j TOS
--set-tos Minimize-Delay

In this example, I'm  doing the simplest thing possible and assuming that
your code is running under its own userid, and that you want all packets
sent out to have that TOS.  You can, of course, use any selectors that
iptables supports, such as cgroups, or a list of ports, or whatever.

\/-/

> GenericMediaServer::incomingConnectionHandlerOnSocket
> >
> > But this changes the live555 library itself. Is there any other way to
> do this without having to change the live555 library itself?
>
> What I would do is subclass “RTSPServer”, and - in your subclass -
> reimplement the “createNewClientConnection()” virtual function, as follows:
>
> ClientConnection* myRTSPServerSubclass::createNewClientConnection(int
> clientSocket, struct sockaddr_in clientAddr) {
>         // Do whatever you need to do to set the IP TOS field (for
> “clientSocket”).
>
>         return RTSPServer::createNewClientConnection(clientSocket,
> clientAddr);
> }
>
>
> Ross Finlayson
> Live Networks, Inc.
> http://www.live555.com/
>
>
> _______________________________________________
> live-devel mailing list
> live-devel@lists.live555.com
> http://lists.live555.com/mailman/listinfo/live-devel
>
> --
> You received this message because you are subscribed to the Google Groups
> "Liverwurst" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to liverwurst+unsubscr...@owal.io.
> To post to this group, send email to liverwu...@owal.io.
> To view this discussion on the web visit https://groups.google.com/a/
> owal.io/d/msgid/liverwurst/712CFB74-9C0B-4795-93FB-
> 3B36B36569E4%40live555.com.
>
_______________________________________________
live-devel mailing list
live-devel@lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel

Reply via email to