houxiao
2016-12-12 1aa39580f8dd4e402eb79d4eb22606aa647ba20c
add HCNetSDK support Fixed

git-svn-id: http://192.168.1.226/svn/proxy@10 454eff88-639b-444f-9e54-f578c98de674
1 文件已复制
1 文件已重命名
1个文件已修改
6 ■■■■ 已修改文件
ProxyConsole/make.sh 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
ProxyConsole/proxyconsole-hc.cpp 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
ProxyConsole/proxyconsole.cpp 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
ProxyConsole/make.sh
@@ -2,4 +2,4 @@
#gcc -pthread -lmysqlclient proxyconsole.c -o proxyconsole
gcc proxyconsole-hc.c -L./HCNetSDK/lib -lhcnetsdk -lHCCore -lhpr -o proxyconsole-hc
g++ proxyconsole.cpp -pthread -L./HCNetSDK/lib -lhcnetsdk -lHCCore -lhpr -o proxyconsole-hc
ProxyConsole/proxyconsole-hc.cpp
File was renamed from ProxyConsole/proxyconsole.c
@@ -744,7 +744,7 @@
    return -1;
}
void AurhorizationResponseBytesReal(char* byte_array_out,int * byte_array_length_out,char *Myuri, char *nonce,char *cnonce,char *response)
void AurhorizationResponseBytesReal(char* byte_array_out,int * byte_array_length_out,char *Myuri, char *nonce,const char *cnonce,char *response)
{
    //    Authorization: Digest username="supervisor", realm="VideoIQ", nonce="n99u1VYBAABAf0HT+h92EO4hT2CzmfxG", uri="/PSIA/VIQ/Event/metadata/0/files", response="7d8d929e39655ad9f3e6e94e9004792e", qop=auth, nc=00000001, cnonce="0d2175d8cdb63f84f18894200e129ace", algorithm="MD5"
    int idx=0,len;
ProxyConsole/proxyconsole.cpp
copy from ProxyConsole/proxyconsole.c copy to ProxyConsole/proxyconsole.cpp
File was copied from ProxyConsole/proxyconsole.c
@@ -744,7 +744,7 @@
    return -1;
}
void AurhorizationResponseBytesReal(char* byte_array_out,int * byte_array_length_out,char *Myuri, char *nonce,char *cnonce,char *response)
void AurhorizationResponseBytesReal(char* byte_array_out,int * byte_array_length_out,char *Myuri, char *nonce,const char *cnonce,char *response)
{
    //    Authorization: Digest username="supervisor", realm="VideoIQ", nonce="n99u1VYBAABAf0HT+h92EO4hT2CzmfxG", uri="/PSIA/VIQ/Event/metadata/0/files", response="7d8d929e39655ad9f3e6e94e9004792e", qop=auth, nc=00000001, cnonce="0d2175d8cdb63f84f18894200e129ace", algorithm="MD5"
    int idx=0,len;