summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorschmirl <schmirl>2007-05-09 09:12:42 +0000
committerschmirl <schmirl>2007-05-09 09:12:42 +0000
commitbb1ac54c87ea689e6275838c606fa7224adf4169 (patch)
tree5bce55f61bc8d7b527dc84db5ae4bd5ffbe1a1c4 /server
parent2b103196d6fb69336a14d9167dbda701ab135183 (diff)
downloadvdr-plugin-streamdev-bb1ac54c87ea689e6275838c606fa7224adf4169.tar.gz
vdr-plugin-streamdev-bb1ac54c87ea689e6275838c606fa7224adf4169.tar.bz2
Set DSCP 41 on stream data packets. WMM capable WLAN accesspoints
should understand this and give precedence. For Internet streaming it could be used by traffic shapers. Suggested by ollo@vdrportal (#237). Modified Files: server/connectionHTTP.c server/connectionVTP.c tools/socket.c tools/socket.h
Diffstat (limited to 'server')
-rw-r--r--server/connectionHTTP.c4
-rw-r--r--server/connectionVTP.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/server/connectionHTTP.c b/server/connectionHTTP.c
index 5f0beef..8bde3aa 100644
--- a/server/connectionHTTP.c
+++ b/server/connectionHTTP.c
@@ -1,5 +1,5 @@
/*
- * $Id: connectionHTTP.c,v 1.11 2007/04/16 11:01:02 schmirl Exp $
+ * $Id: connectionHTTP.c,v 1.12 2007/05/09 09:12:42 schmirl Exp $
*/
#include <ctype.h>
@@ -71,6 +71,8 @@ bool cConnectionHTTP::ProcessRequest(void)
device->SwitchChannel(m_Channel, false);
if (m_LiveStreamer->SetChannel(m_Channel, m_StreamType, m_Apid)) {
m_LiveStreamer->SetDevice(device);
+ if (!SetDSCP())
+ LOG_ERROR_STR("unable to set DSCP sockopt");
if (m_StreamType == stES && (m_Apid != 0 || ISRADIO(m_Channel))) {
return Respond("HTTP/1.0 200 OK")
&& Respond("Content-Type: audio/mpeg")
diff --git a/server/connectionVTP.c b/server/connectionVTP.c
index 1d8a2d8..c847bf3 100644
--- a/server/connectionVTP.c
+++ b/server/connectionVTP.c
@@ -1,5 +1,5 @@
/*
- * $Id: connectionVTP.c,v 1.13 2007/04/26 06:25:13 schmirl Exp $
+ * $Id: connectionVTP.c,v 1.14 2007/05/09 09:12:42 schmirl Exp $
*/
#include "server/connectionVTP.h"
@@ -691,6 +691,8 @@ bool cConnectionVTP::CmdPORT(char *Opts)
return Respond(551, "Couldn't open data connection");
}
+ if (!m_LiveSocket->SetDSCP())
+ LOG_ERROR_STR("unable to set DSCP sockopt");
if (m_LiveStreamer)
m_LiveStreamer->Start(m_LiveSocket);