my project is actually pretty basic, but I just can't find the right information for it (ie: I can only find how to create a server that accepts multiple clients).
The idea is quite simple:
I want to create a client to will connect to multiple servers, and query stuff from them + await autonomous messages.
To give a rough idea, I want to create a simple program that will monitor multiple servers by creating a SSH connection to them (using Jsch), doing a login, sending 1 command every minute to retrieve all the alarms on the server. And the servers will also send alarms as soon as they appear.
my question is then: does anyone have any example on how to proceed ? any tutorial ? (google was not of much help, but maybe I did not try hard enough).
note: I am already able to do the same using a regular Socket in a Thread, but since I want to poll thousands of servers, I was told that opening an equal number of Threads+Sockets was a bad idea ...