基于gsoap的onvif discovery服务端程序主要流程

1.申请struct soap *m_soap = soap_new()

2.调用soap_bind(struct soap *soap, const char *host, int port, int backlog)进行绑定;

3.调用soap_accept(struct soap *soap)进行接收客户端请求;

if (soap_accept(m_soap ) >=0)

{

soap_serve(m_soap);

soap_end(m_soap);

}

4.soap_serve处理流程:

基于gsoap的onvif discovery服务端程序主要流程_第1张图片

soap_wsdd_mode wsdd_event_Probe(struct soap *soap, const char *MessageID, const char *ReplyTo, const char *Types, const char *Scopes, const char *MatchBy,struct wsdd__ProbeMatchesType *matches)
{
     //需要自己实现
}

你可能感兴趣的:(onvif编程,onvif,soap)