Hello Rooters,
I want to create a DAQ-System that optionally sends the acquired data over the inet to several clients using ROOT classes like TSocket.
I have been studiing the Networking chapter of the users guide, the /tutorials/spy.c and /tutorials/hserv.c with the related files and some topics here in the RootTalk Forum. I also investigated the Go4 Project from GSI, but this was too complex for me to understand.
I am pretty unexperienced in this networking buisness, thats why I have some general questions:
From what I have learned so far, the communication always works this way:
-client asks server for specific stuff.
-server (wich is waiting for such an request) answers with the specific stuff
-client now gets the data.
Isn’t there a way, that the server just sends the data to a socket and doesn’t care about wether there is a client waiting for the data? I am thinking of such an scenario:
-server is always sending data to a socket
-client connects to this socket and reads the data that gets send to the socket and has to care that it gets everything it needs itself (meaning not interrupting the server with requests and stuff).
Please tell me if this is a possible scenario, or if this is not possible.
If it is possible, are there some small examples like the tutorials mentioned above, that give a greater inside of how such an scenario is acomplished?
Thank you
Lutz