Hi,
I’m trying to implement a client-server mechanism through sockets. For me the server is a daq program and the client a GUI interface based on ROOT.
The server sends data with SendRaw (array of floats) inside a loop.
The point is that I would like to interromp this loop if the client GUI sends me a stop. How can I do that?
Sorry if this has been answered before…
Anyway thanks,
fernando.
The loop code:----------------------------
Bool_t Run=kTRUE;
while(Run) {
i++;
//send data
if (i != 0 && (i%kSEND) == 0 ) {
s->SendRaw(tab,kSEND*sizeof(Float_t));
}
}