220 |
|
} |
221 |
|
// get the config...we are connected now! |
222 |
|
getConfigFromServer(); |
223 |
< |
// set our host list if we know we have one we need to set |
224 |
< |
String hostList = _configuration.getProperty("hostList"); |
225 |
< |
boolean hostListSet = false; |
226 |
< |
// send our hostList if we have |
227 |
< |
if (_configuration.getProperty("useHostList").equals("1")) { |
228 |
< |
if (hostList.equals("")) { |
229 |
< |
Conient.addMessage("WARNING{control link}: your host list is empty, the server will send ALL hosts"); |
230 |
< |
} |
231 |
< |
hostListSet = setHostList(hostList); |
232 |
< |
// if not, indicate we want the lot |
233 |
< |
} else { |
234 |
< |
hostListSet = setHostList(""); |
235 |
< |
} |
236 |
< |
// warn if there was a problem, it will have already error'd |
237 |
< |
if (!hostListSet) { |
238 |
< |
Conient.addMessage("WARNING{control link}: unable to set host list"); |
239 |
< |
} |
223 |
> |
|
224 |
|
} catch (IOException e) { |
225 |
|
// print the error and tidy up what's left |
226 |
|
Conient.addMessage("ERROR{control link}: " + e); |
248 |
|
_actionQueue.add(new Integer(STARTDATA)); |
249 |
|
} else { |
250 |
|
try { |
251 |
< |
|
251 |
> |
// set our host list if we know we have one we need to set |
252 |
> |
String hostList = _configuration.getProperty("hostList"); |
253 |
> |
boolean hostListSet = false; |
254 |
> |
// send our hostList if we have |
255 |
> |
if (_configuration.getProperty("useHostList").equals("1")) { |
256 |
> |
if (hostList.equals("")) { |
257 |
> |
Conient.addMessage("WARNING{control link}: your host list is empty, the server will send ALL hosts"); |
258 |
> |
} |
259 |
> |
hostListSet = setHostList(hostList); |
260 |
> |
// if not, indicate we want the lot |
261 |
> |
} else { |
262 |
> |
hostListSet = setHostList(""); |
263 |
> |
} |
264 |
> |
// warn if there was a problem, it will have already error'd |
265 |
> |
if (!hostListSet) { |
266 |
> |
Conient.addMessage("WARNING{control link}: unable to set host list"); |
267 |
> |
} |
268 |
|
// ask the server to start the data link |
269 |
|
String response; |
270 |
|
_outBound.println("STARTDATA"); |