发送消息的主要内容:
1、初始化请求
2、填充要发送的数据
3、发送并接受返回的数据
4、解析数据
5、清理缓存
正文
1、初始化onvif请求
定义一个onvif请求req
定义一个onvif标签tag
临时资源*tmpValue
临时结果tmpresult
主机ip acHostIp[16]
ip地址 acLocalAddress[128]
临时标记tmp_mask[20]
//初始化req
InitOnvifReq(req);
int InitOnvifReq(onvif_req *req)
{
//onvif_req req;
int sendlen;
int tmplen;
memset(req,0,sizeof(onvif_req));
xml_init_onvif(req);
req->buf = NULL;//发送的数据
req->buflen = 0;
req->currlen = 0;