# | Line 70 | Line 70 | public abstract class ServiceCheckSkeleton implements | |
---|---|---|
70 | */ | |
71 | protected String connectToService(String hostname, int port) throws IOException { | |
72 | // connect | |
73 | < | Socket socket = new Socket(hostname, 22); |
73 | > | Socket socket = new Socket(hostname, port); |
74 | BufferedReader socketIn = new BufferedReader(new InputStreamReader(socket.getInputStream())); | |
75 | // read first line | |
76 | String response = socketIn.readLine(); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |