56 |
|
_socketOut.println("OK"); |
57 |
|
_socketOut.flush(); |
58 |
|
|
59 |
+ |
// get lastmodified |
60 |
+ |
inBound = _socketIn.readLine(); |
61 |
+ |
if(!inBound.equals("LASTMODIFIED")) { |
62 |
+ |
// protocol error |
63 |
+ |
_socketOut.println("ERROR"); |
64 |
+ |
_socketOut.flush(); |
65 |
+ |
throw new IOException("Protocol Error"); |
66 |
+ |
} |
67 |
+ |
else { |
68 |
+ |
// send info |
69 |
+ |
_socketOut.println(myConfig.getLastModified()); |
70 |
+ |
_socketOut.flush(); |
71 |
+ |
} |
72 |
+ |
|
73 |
+ |
// get properties |
74 |
|
inBound = _socketIn.readLine(); |
75 |
|
while(!inBound.equals("ENDCONFIG")) { |
76 |
|
|