LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Duplicate TCPClient callback?

Solved!
Go to solution

Hi everyone,

 

I am developing a tcp client driver. Therfore, i used the TCPconnect function with the TCPclient callback parameter in it, which ables us to receive callback as DISCONNECT.

 

My question is : how to receive the TCPclient in both my driver code and my user code.

 

For exemple, I would like to receive the disconnection event in my driver code to process to some intern functions as log in file. But the user also want to receive that event to change its IHM like turn a led connection red.

I success to receive the callback in my dll code (as in the tcp client example).

I success to receive the callback in my user code (passing the tcpfuncpointer in higher level in parameter)

But i did not success to duplicate it (see pictures attached).

 

Is there a way to do it?

 

Thank you!

Download All
0 Kudos
Message 1 of 2
(2,453 Views)
Solution
Accepted by topic author LoisLbs

I finally found a solution to duplicate my tcp callback from my dll to my client ihm.

 

See the picture attached :

0 Kudos
Message 2 of 2
(2,404 Views)