101 |
|
getInBound("FQDN"); |
102 |
|
_socketOut.println(_socket.getInetAddress().getHostName().toLowerCase()); |
103 |
|
|
104 |
+ |
// try for IP |
105 |
+ |
getInBound("IP"); |
106 |
+ |
_socketOut.println(_socket.getInetAddress().getHostAddress()); |
107 |
+ |
|
108 |
|
// get properties |
109 |
|
String reqProperty = getInBound(); |
110 |
|
while(!reqProperty.equals("ENDCONFIG")) { |
236 |
|
String inBound = getInBound(); |
237 |
|
// check if it's what we're expecting |
238 |
|
if(!inBound.equals(expected)) { |
239 |
+ |
_socketOut.println("ERROR"); |
240 |
|
throw new IOException("protocol error - expected:"+expected+" got:" + inBound); |
241 |
|
} |
242 |
|
// it should be ok then |