Doubt on receiving data [closed]

-1

I have a system on one computer that will send data to another system on another computer. The system that will receive the data will need to read this data in real time and automatically.

But my question in building the system is how can I make it known in real time and automatically that I received the data from the other system?

I use java ..

------------------ EDIT ------------------

I am doing a CBT project, a computer that would stay at the counter of the establishment would have a program that the user registers the requests of the people. There would be a button to send the request, then this button would send the request data to a computer that is in the kitchen of the establishment. But in this kitchen computer, it would be another system that is "listening" to the arrival of these requests, that is, it would have to be automatic to know when an order arrived.

    
asked by anonymous 17.02.2016 / 16:17

1 answer

1

Real-time even can be difficult, not to say impossible. Some delay you should have, since you have the network between the computers in the middle.

The best way to do communication is a server-side architecture, with one sending system and the other receiving data. In Java, it is worth taking a look at how the Sockets and Networking works to send and receive packets in UDP or TCP (standard with or without connection).

    
17.02.2016 / 16:35