View Single Post
  #1  
Old 03-13-2010, 09:31 AM
osab2000 osab2000 is offline
Aspiring Member
 
Join Date: Mar 2010
Posts: 1
osab2000 has 10 reputation points
Default How can i get Privet Data using VB.net

I am trying to read privet data from AES server using AES server 4.2 by VB.Net application unfortunately only privet data is my problem i tried to simulate below C++ code using VB.net but not success is there any one can help

Version:1.0 StartHTML:0000000149 EndHTML:0000002152 StartFragment:0000000199 EndFragment:0000002118 StartSelection:0000000199 EndSelection:0000002118 /////////////////////////////////////////////////////////////////
char requestVersion[] = "6";
ATTPrivateData_t privateData;

(void)strcpy(privateData.vendor, "VERSION");
privateData.data[0] = PRIVATE_DATA_ENCODING;
if (attMakeVersionString(requestVersion, &privateData.data[1]) > 0) {
privateData.length = strlen(&privateData.data[1]) + 2;
}
else
{
privateData.length = 0;
}
/////////////////////////////////////////////////////////////////
privateData member then passed to acsOpenStream API


Please use following code to get private data:

/////////////////////////////////////////////////////////////////
ATTEvent_t attEvent;
if(m_AttPrivateData.length>0)
{
if (attPrivateData(&m_AttPrivateData, &attEvent) != ACSPOSITIVE_ACK)
{
ERRORLOG("Error in Decode the Private Data ");
}
}
/////////////////////////////////////////////////////////////////

m_AttPrivateData come with original Event; Originated, Delivered,





Thanks

Omar
Reply With Quote