Reputation: 5226
Considering application_A
on a machine_1
needs information about machine_2
, provided by application_B
(which is located on machine_2
) and that both machines are in the same network, what would you guys suggest to be the easiest way of implementing the communication between the 2? (I was thinking simple socket connection).
Note: the information required is something in the lines of a few bytes, so nothing big.
Upvotes: 2
Views: 6325
Reputation: 17893
Upvotes: 4
Reputation: 4847
You can run a server program on Machine2
using ServerSocket
and a client program in Machine1
can request for info.
Upvotes: 1
Reputation: 1929
There are different ways to implement this but they all come down to one thing: communication over sockets.
If the information is only some bytes, implementing the sockets themselves is probably your best bet, if things start to get bigger, you might want to look into some middleware.
Upvotes: 1