Hi,
as I'm using libxml2 on the other side of the network communication,
would it be possible to do the same with the libxml2 DLL (that I found
on <>) ? (i.e. generate a fp and
integrate it).
Also, I'm not sure what's the correct design pattern I should use to
make the socket connection. What I thought would be better/easier to do
is to use a XML tree for the commands that will embed the XML trees of
data. Furthermore, as the client is sending data to a networked database,
any transmission is always initiated by the client, then as far as I've
read from ni.com's docs, shall I do :
ConnectToTCPServer(handle,port,server,cbFunc,cbData,0); // to initiate the connection
where
cbFunc(handle,type,err,cbData) {
if there's data ready then
call the xml conversion functions with ClientTCPRead(handle,buffer,bufsize,0);
if disconnection close the connection
}
and whenever I need to send data, I just need to do :
ClientTCPWrite (handle,buffer,bufsize,0);
where buffer is the output of my xml conversion functions ?
When I'm talking about xml conversion, that's actually because I
use structs to store the data in the application, which are designed
in the same way the data XML Trees has been done.
I'm not sure this is the right way though, because I need to
authenticate the user for the whole connection to the database, so
I need to keep the connection up for all the session (and restart the
connection whenever it is needed).
Usually, to get answers to those questions, I'd do code snippets,
and test them in real situation... But my boss is urging me to finish
the project ASAP, where ASAP is before next week (and I'm still working
on the measure library and the data library...), so any help would save
my holidays
😆 thanks for your time and your insightful assistance,>
--
Bernard Pratz
IT Developer
Engineering service
Chelton Telecom & Microwave