]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Send our id (0x6502) in cwc login. Can be used by servers to identify Tvheadend
authorAndreas Öman <andreas@lonelycoder.com>
Wed, 25 May 2011 06:39:59 +0000 (08:39 +0200)
committerAndreas Öman <andreas@lonelycoder.com>
Wed, 25 May 2011 06:39:59 +0000 (08:39 +0200)
src/cwc.c

index 1c9eeb11129c47c4e664d9bf392bcc3154d1acf9..ef8dc449a3db70608fe767e38549ef23e310ddde 100644 (file)
--- 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);
 }