LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

TCP communication design in cvi

Hello,

I use TCP/IP as the way of communication between processes ,I'd like to know :1,To keep on a stable interact between client and host , what time interval could be the preferred ? 2,Due to take on multi thread mechanism in my application , I find when experienced a period of time (about 6 hours) ,my TCP server application can be killed without execuating any quit instruction , I do not know what bug can cause such a problem , because there is no any system error prompt .Please suggest a policy to monitor the bug .3,Does CVi support "Volatile " keyword ? 4, When the host(TCP server) transmitting data to the client ,can I send back data to the host at the same time ? I am afraid that if there would be a collision of transmitting .

Da
vid
0 Kudos
Message 1 of 2
(2,609 Views)
David,

Why not use datasockets? Using TCP/IP, you will have to come up with
protocol to transfer commands & data from your client to server and back.

Why should you worry about collisions in your app, the underlying
protocol takes care of that.


vishi


davidLee wrote:
> Hello,
>
> I use TCP/IP as the way of communication between processes ,I'd like
> to know :1,To keep on a stable interact between client and host , what
> time interval could be the preferred ? 2,Due to take on multi thread
> mechanism in my application , I find when experienced a period of time
> (about 6 hours) ,my TCP server application can be killed without
> execuating any quit instruction , I do not know what bug can cause
> such a problem , because there is no any system error prompt .Pl
ease
> suggest a policy to monitor the bug .3,Does CVi support "Volatile "
> keyword ? 4, When the host(TCP server) transmitting data to the client
> ,can I send back data to the host at the same time ? I am afraid that
> if there would be a collision of transmitting .
>
> David
0 Kudos
Message 2 of 2
(2,609 Views)