Send our id (0x6502) in cwc login. Can be used by servers to identify Tvheadend

This commit is contained in:
Andreas Öman 2011-05-25 08:39:59 +02:00
parent 828137904e
commit 920de31efe

View file

@ -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);
}