📄 syncsession.cpp
字号:
CmdDevInfDevInf_s* pcmditemlist = (CmdDevInfDevInf_s *)itemList->item->data;
if( pcmditemlist->verdtd!=NULL)
XPTDEBUG(("Put.Item.Data.VerDTD = %s\n",pcmditemlist->verdtd));
if( pcmditemlist->man!=NULL)
XPTDEBUG(("Put.Item.Data.Man = %s\n",pcmditemlist->man));
if( pcmditemlist->mod!=NULL)
XPTDEBUG(("Put.Item.Data.Mod = %s\n",pcmditemlist->mod));
if( pcmditemlist->swv!=NULL)
XPTDEBUG(("Put.Item.Data.SwV = %s\n",pcmditemlist->swv));
if( pcmditemlist->hwv!=NULL)
XPTDEBUG(("Put.Item.Data.HwV = %s\n",pcmditemlist->hwv));
if( pcmditemlist->devid!=NULL)
XPTDEBUG(("Put.Item.Data.DevID = %s\n",pcmditemlist->devid));
if( pcmditemlist->devtyp!=NULL)
XPTDEBUG(("Put.Item.Data.DevTyp = %s\n",pcmditemlist->devtyp));
CmdDevInfDataStoreList_s* pdatastorelist = pcmditemlist->datastore;
while( pdatastorelist!=NULL)
{
if(pdatastorelist->data!=NULL)
{
CmdDevInfDataStore_s*pdatastore = pdatastorelist->data;
if( pdatastore->displayname!=NULL)
XPTDEBUG(("Put.Item.Data.DataStore.DisplayName = %s\n",pdatastore->displayname));
if( pdatastore->maxguidsize!=NULL)
XPTDEBUG(("Put.Item.Data.DataStore.MaxGuidSize = %s\n",pdatastore->maxguidsize));
if( pdatastore->dsmem!=NULL)
{
XPTDEBUG(("Put.Item.Data.DataStore.DsMem.Flags = %d\n",pdatastore->dsmem->flags));
if( pdatastore->dsmem->maxid!=NULL)
XPTDEBUG(("Put.Item.Data.DataStore.DsMem.MaxID = %s\n",pdatastore->dsmem->maxid));
if( pdatastore->dsmem->maxmem!=NULL)
XPTDEBUG(("Put.Item.Data.DataStore.DsMem.MaxMem = %s\n",pdatastore->dsmem->maxmem));
}
if( pdatastore->sourceref!=NULL)
XPTDEBUG(("Put.Item.Data.DataStore.SourceRef = %s\n",pdatastore->sourceref));
if( pdatastore->rxpref!=NULL)
{
if(pdatastore->rxpref->cttype!=NULL)
XPTDEBUG(("Put.Item.Data.DataStore.RxPref.CTType = %s\n",pdatastore->rxpref->cttype));
if(pdatastore->rxpref->verct!=NULL)
XPTDEBUG(("Put.Item.Data.DataStore.RxPref.VErct = %s\n",pdatastore->rxpref->verct));
}
CmdDevInfXmitList_s * pdatastorerx = pdatastore->rx;
while( pdatastorerx !=NULL)
{
if(pdatastorerx->data->cttype!=NULL)
XPTDEBUG(("Put.Item.Data.DataStore.Rx.CTType = %s\n",pdatastorerx->data->cttype));
if(pdatastorerx->data->verct!=NULL)
XPTDEBUG(("Put.Item.Data.DataStore.Rx.VErct = %s\n",pdatastorerx->data->verct));
pdatastorerx= pdatastorerx->next;
}
if( pdatastore->txpref!=NULL)
{
if(pdatastore->txpref->cttype!=NULL)
XPTDEBUG(("Put.Item.Data.DataStore.TxPref.CTType = %s\n",pdatastore->txpref->cttype));
if(pdatastore->txpref->verct!=NULL)
XPTDEBUG(("Put.Item.Data.DataStore.TxPref.VErct = %s\n",pdatastore->txpref->verct));
}
CmdDevInfXmitList_s * pdatastoretx = pdatastore->tx;
while( pdatastoretx !=NULL)
{
if(pdatastoretx->data->cttype!=NULL)
XPTDEBUG(("Put.Item.Data.DataStore.Tx.CTType = %s\n",pdatastoretx->data->cttype));
if(pdatastoretx->data->verct!=NULL)
XPTDEBUG(("Put.Item.Data.DataStore.Tx.VErct = %s\n",pdatastoretx->data->verct));
pdatastoretx= pdatastoretx->next;
}
if( pdatastore->synccap!=NULL)
{
PcdataList_s*synctype = pdatastore->synccap->synctype;
while(synctype!=NULL)
{
if(synctype->data!=NULL)
XPTDEBUG(("Put.Item.Data.DataStore.SyncType = %s\n",synctype->data));
synctype = synctype->next;
}
}
pdatastorelist = pdatastorelist->next;
}
}
CmdDevInfCTCapList_s* pctcaplist = pcmditemlist->ctcap;
while( pctcaplist!=NULL)
{
CmdDevInfCTCap_s*pdata = pctcaplist->data;
if(pdata->cttype!=NULL)
XPTDEBUG(("Put.Item.Data.CTCap.CTType = %s\n",pdata->cttype));
CmdDevInfCTDataPropList_s* pdataproplist = pdata->prop;
while(pdataproplist!=NULL)
{
CmdDevInfCTDataProp_s * pdataprop = pdataproplist->data;
if(pdataprop->prop!=NULL)
{
if(pdataprop->prop->datatype!=NULL)
XPTDEBUG(("Put.Item.Data.CTCap.DataType = %s\n",pdataprop->prop->datatype));
if(pdataprop->prop->dname!=NULL)
XPTDEBUG(("Put.Item.Data.CTCap.DName = %s\n",pdataprop->prop->dname));
if(pdataprop->prop->name!=NULL)
XPTDEBUG(("Put.Item.Data.CTCap.PropName = %s\n",pdataprop->prop->name));
if(pdataprop->prop->size!=NULL)
XPTDEBUG(("Put.Item.Data.CTCap.Size = %s\n",pdataprop->prop->size));
PcdataList_s* pvalenumlist = pdataprop->prop->valenum;
while(pvalenumlist!=NULL)
{
if(pvalenumlist->data!=NULL)
XPTDEBUG(("Put.Item.Data.CTCap.ValeNum= %s\n",pvalenumlist->data));
pvalenumlist = pvalenumlist->next;
}
}
CmdDevInfCTDataList_s*pdataparam = pdataprop->param;
while(pdataparam!=NULL)
{
CmdDevInfCTData_s * pdata = pdataparam ->data;
if(pdata->datatype!=NULL)
XPTDEBUG(("Put.Item.Data.CTCap.DataType = %s\n",pdata->datatype));
if(pdata->dname!=NULL)
XPTDEBUG(("Put.Item.Data.CTCap.DName = %s\n",pdata->dname));
if(pdata->name!=NULL)
XPTDEBUG(("Put.Item.Data.CTCap.ParamName = %s\n",pdata->name));
if(pdata->size!=NULL)
XPTDEBUG(("Put.Item.Data.CTCap.Size = %s\n",pdata->size));
PcdataList_s* pvalenumlist = pdata->valenum;
while(pvalenumlist!=NULL)
{
if(pvalenumlist->data!=NULL)
XPTDEBUG(("Put.Item.Data.CTCap.ValeNum= %s\n",pvalenumlist->data));
pvalenumlist = pvalenumlist->next;
}
pdataparam = pdataparam->next;
}
//XPTDEBUG(("Put.Item.Data.CTCap.Prop = %s\n",pdata->cttype));
pdataproplist = pdataproplist ->next;
}
pctcaplist= pctcaplist->next;
}
// }
//}
itemList=itemList->next;
}
}
}
*/
break;
case SML_PE_RESULTS:
XPTDEBUG(("Results\n"));
break;
case SML_PE_SEARCH:
XPTDEBUG(("Search\n"));
break;
case SML_PE_SEQUENCE_START:
XPTDEBUG(("Sequence Start\n"));
break;
case SML_PE_SEQUENCE_END:
XPTDEBUG(("Sequnece End\n"));
break;
case SML_PE_STATUS:
// XPTDEBUG(("Status\n"));
break;
case SML_PE_SYNC_START:
XPTDEBUG(("Sync Start\n"));
break;
case SML_PE_SYNC_END:
XPTDEBUG(("Sync End\n"));
break;
case SML_PE_REPLACE:
XPTDEBUG(("Replace\n"));
break;
case SML_PE_HEADER:
XPTDEBUG(("Header\n"));
/*
{
CmdSyncHdr_s* pSyncHdr = (CmdSyncHdr_s*)tmp->CmdItem;
if(pSyncHdr->version!=NULL)
XPTDEBUG(("SyncHdr.VerDTD = %s\n",pSyncHdr->version));
if(pSyncHdr->proto!=NULL)
XPTDEBUG(("SyncHdr.VerProto = %s\n",pSyncHdr->proto));
if(pSyncHdr->sessionID!=NULL)
XPTDEBUG(("SyncHdr.SessionID = %s\n",pSyncHdr->sessionID));
if(pSyncHdr->msgID!=NULL)
XPTDEBUG(("SyncHdr.MsgID = %s\n",pSyncHdr->msgID));
if(pSyncHdr->target_locURI!=NULL)
XPTDEBUG(("SyncHdr.Target.LocURI = %s\n",pSyncHdr->target_locURI));
if(pSyncHdr->target_locName!=NULL)
XPTDEBUG(("SyncHdr.Target.LocName = %s\n",pSyncHdr->target_locName));
if(pSyncHdr->source_locURI!=NULL)
XPTDEBUG(("SyncHdr.Source.LocURI = %s\n",pSyncHdr->source_locURI));
if(pSyncHdr->source_locName!=NULL)
XPTDEBUG(("SyncHdr.Source.LocName = %s\n",pSyncHdr->source_locName));
if(pSyncHdr->respURI!=NULL)
XPTDEBUG(("SyncHdr.RespURI = %s\n",pSyncHdr->respURI));
if(pSyncHdr->cred_meta!=NULL)
{
if(pSyncHdr->cred_meta->maxmsgsize!=NULL)
XPTDEBUG(("SyncHdr.Cred.Meta.MaxMsgSize = %s\n",pSyncHdr->cred_meta->maxmsgsize));
if(pSyncHdr->cred_meta->format!=NULL)
XPTDEBUG(("SyncHdr.Cred.Meta.Format = %s\n",pSyncHdr->cred_meta->format));
if(pSyncHdr->cred_meta->type!=NULL)
XPTDEBUG(("SyncHdr.Cred.Meta.Type = %s\n",pSyncHdr->cred_meta->type));
if(pSyncHdr->cred_meta->version!=NULL)
XPTDEBUG(("SyncHdr.Cred.Meta.Version = %s\n",pSyncHdr->cred_meta->version));
if(pSyncHdr->cred_meta->anchor_last!=NULL)
XPTDEBUG(("SyncHdr.Cred.Meta.Anchor.Last = %s\n",pSyncHdr->cred_meta->anchor_last));
if(pSyncHdr->cred_meta->anchor_next!=NULL)
XPTDEBUG(("SyncHdr.Cred.Meta.Anchor.Next = %s\n",pSyncHdr->cred_meta->anchor_next));
if(pSyncHdr->cred_meta->mark!=NULL)
XPTDEBUG(("SyncHdr.Cred.Meta.Mark = %s\n",pSyncHdr->cred_meta->mark));
if(pSyncHdr->cred_meta->maxobjsize!=NULL)
XPTDEBUG(("SyncHdr.Cred.Meta.MaxObjSize = %s\n",pSyncHdr->cred_meta->maxobjsize));
if(pSyncHdr->cred_meta->mem_free!=NULL)
XPTDEBUG(("SyncHdr.Cred.Meta.Mem.Free = %s\n",pSyncHdr->cred_meta->mem_free));
if(pSyncHdr->cred_meta->mem_freeid!=NULL)
XPTDEBUG(("SyncHdr.Cred.Meta.Mem.FreeID = %s\n",pSyncHdr->cred_meta->mem_freeid));
if(pSyncHdr->cred_meta->mem_shared!=NULL)
XPTDEBUG(("SyncHdr.Cred.Meta.Mem.Shared = %s\n",pSyncHdr->cred_meta->mem_shared));
if(pSyncHdr->cred_meta->nextnonce!=NULL)
XPTDEBUG(("SyncHdr.Cred.Meta.Mem.NextNonce = %s\n",pSyncHdr->cred_meta->nextnonce));
if(pSyncHdr->cred_meta->emi!=NULL)
XPTDEBUG(("SyncHdr.Cred.Meta.Emi.Data = %s\n",pSyncHdr->cred_meta->emi->data));
}
if(pSyncHdr->cred_data!=NULL)
XPTDEBUG(("SyncHdr.Cred.Data = %s\n",pSyncHdr->cred_data));
if(pSyncHdr->meta!=NULL)
{
if(pSyncHdr->meta->maxmsgsize!=NULL)
XPTDEBUG(("SyncHdr.Meta.MaxMsgSize = %s\n",pSyncHdr->meta->maxmsgsize));
if(pSyncHdr->meta->format!=NULL)
XPTDEBUG(("SyncHdr.Meta.Format = %s\n",pSyncHdr->meta->format));
if(pSyncHdr->meta->type!=NULL)
XPTDEBUG(("SyncHdr.Meta.Type = %s\n",pSyncHdr->meta->type));
if(pSyncHdr->meta->version!=NULL)
XPTDEBUG(("SyncHdr.Meta.Version = %s\n",pSyncHdr->meta->version));
if(pSyncHdr->meta->anchor_last!=NULL)
XPTDEBUG(("SyncHdr.Meta.Anchor.Last = %s\n",pSyncHdr->meta->anchor_last));
if(pSyncHdr->meta->anchor_next!=NULL)
XPTDEBUG(("SyncHdr.Meta.Anchor.Next = %s\n",pSyncHdr->meta->anchor_next));
if(pSyncHdr->meta->mark!=NULL)
XPTDEBUG(("SyncHdr.Meta.Mark = %s\n",pSyncHdr->meta->mark));
if(pSyncHdr->meta->maxobjsize!=NULL)
XPTDEBUG(("SyncHdr.Meta.MaxObjSize = %s\n",pSyncHdr->meta->maxobjsize));
if(pSyncHdr->meta->mem_free!=NULL)
XPTDEBUG(("SyncHdr.Meta.Mem.Free = %s\n",pSyncHdr->meta->mem_free));
if(pSyncHdr->meta->mem_freeid!=NULL)
XPTDEBUG(("SyncHdr.Meta.Mem.FreeID = %s\n",pSyncHdr->meta->mem_freeid));
if(pSyncHdr->meta->mem_shared!=NULL)
XPTDEBUG(("SyncHdr.Meta.Mem.Shared = %s\n",pSyncHdr->meta->mem_shared));
if(pSyncHdr->meta->nextnonce!=NULL)
XPTDEBUG(("SyncHdr.Meta.Mem.NextNonce = %s\n",pSyncHdr->meta->nextnonce));
if(pSyncHdr->meta->emi!=NULL)
XPTDEBUG(("SyncHdr.Meta.Emi.Data = %s\n",pSyncHdr->meta->emi->data));
}
}
*/
break;
case SML_PE_PUT_GET:
XPTDEBUG(("Put Get\n"));
break;
case SML_PE_CMD_GROUP:
XPTDEBUG(("Cmd Group\n"));
break;
case SML_PE_GENERIC:
XPTDEBUG(("Generic\n"));
break;
case SML_PE_FINAL:
XPTDEBUG(("Final\n"));
break;
}
tmp=tmp->next;
}
}
void CSyncSession::InsertCmdItem(SmlProtoElement_t ItemType,void *CmdItem)
{
SessionCmdItem_t * last = m_pEnd;
if(m_pHead==NULL)
{
m_pHead = (SessionCmdItem_t *)smlLibMalloc(sizeof(SessionCmdItem_t));
smlLibMemset( m_pHead,0,sizeof(SessionCmdItem_t));
m_pEnd = m_pHead;
last = m_pEnd;
}
else
{
m_pEnd = (SessionCmdItem_t *)smlLibMalloc(sizeof(SessionCmdItem_t));
smlLibMemset( m_pEnd,0,sizeof(SessionCmdItem_t));
}
last->next = m_pEnd;
m_pEnd->CmdItem=CmdItem;
m_pEnd->ItemType =ItemType;
m_pEnd->next = NULL;
DebugCmdItem();
return ;
}
/*
void CSyncSession::InsertCmdItem(SmlProtoElement_t ItemType,void *CmdItem)
{
SessionCmdItem_t * last = m_pEnd;
if(m_pHead==NULL)
{
m_pHead = (SessionCmdItem_t *)smlLibMalloc(sizeof(SessionCmdItem_t));
m_pEnd = m_pHead;
last = m_pEnd;
}
else
{
m_pEnd = (SessionCmdItem_t *)smlLibMalloc(sizeof(SessionCmdItem_t));
}
last->next = m_pEnd;
m_pEnd->CmdItem=CmdItem;
m_pEnd->ItemType =ItemType;
m_pEnd->next = NULL;
DebugCmdItem();
return ;
}
*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -