6 |
|
import uk.ac.ukc.iscream.filter.*; |
7 |
|
import uk.ac.ukc.iscream.util.*; |
8 |
|
import uk.ac.ukc.iscream.componentmanager.*; |
9 |
< |
import java.net.Socket; |
9 |
> |
import java.net.*; |
10 |
|
import java.io.*; |
11 |
|
|
12 |
|
/** |
87 |
|
// send info |
88 |
|
_socketOut.println(myConfig.getFileList()); |
89 |
|
} |
90 |
< |
|
90 |
> |
|
91 |
> |
// send the FQDN to the host |
92 |
> |
inBound = _socketIn.readLine(); |
93 |
> |
if(!inBound.equals("FQDN")) { |
94 |
> |
// protocol error |
95 |
> |
_socketOut.println("ERROR"); |
96 |
> |
throw new IOException("protocol error - expected:FQDN got:" + inBound); |
97 |
> |
} |
98 |
> |
else { |
99 |
> |
// send the fqdn (of the host) to the host |
100 |
> |
_socketOut.println(_socket.getInetAddress().getHostName()); |
101 |
> |
} |
102 |
> |
|
103 |
|
// get properties |
104 |
|
inBound = _socketIn.readLine(); |
105 |
|
while(!inBound.equals("ENDCONFIG")) { |