From: Andreas Ă–man Date: Wed, 25 May 2011 06:39:59 +0000 (+0200) Subject: Send our id (0x6502) in cwc login. Can be used by servers to identify Tvheadend X-Git-Tag: 2.99~49 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=920de31efe9901ec84f45511b6be164c0f0f8418;p=thirdparty%2Ftvheadend.git Send our id (0x6502) in cwc login. Can be used by servers to identify Tvheadend --- diff --git a/src/cwc.c b/src/cwc.c index 1c9eeb111..ef8dc449a 100644 --- a/src/cwc.c +++ b/src/cwc.c @@ -44,7 +44,7 @@ /** * */ - +#define TVHEADEND_PROTOCOL_ID 0x6502 #define CWC_KEEPALIVE_INTERVAL 30 #define CWS_NETMSGSIZE 272 @@ -714,7 +714,7 @@ cwc_send_login(cwc_t *cwc) memcpy(buf + 3, cwc->cwc_username, ul); memcpy(buf + 3 + ul, cwc->cwc_password_salted, pl); - cwc_send_msg(cwc, buf, ul + pl + 3, 0, 0); + cwc_send_msg(cwc, buf, ul + pl + 3, TVHEADEND_PROTOCOL_ID, 0); }