1 |
/* Java Host for i-scream |
2 |
* Written by Ash Beeson ab11 |
3 |
* Version History: |
4 |
* 1.0 12/11/00 Inital working version |
5 |
*/ |
6 |
|
7 |
class JavaHost { |
8 |
|
9 |
public JavaHost( String serverName, int port ){ |
10 |
// create a connection to the configurator |
11 |
Config config = new Config(serverName, port); |
12 |
// the config class knows what values it wants to get from |
13 |
// the configurator |
14 |
|
15 |
// create a SystemMonitor object and pass the confifurator |
16 |
// as a param so it knows what to do! |
17 |
SystemMonitor sysMon = new SystemMonitor(config); |
18 |
|
19 |
while ( true ){ |
20 |
// keep going for ever and ever ;) |
21 |
// send a udp packet to the filter declared in config |
22 |
// send it the xml packet created by getInfo() |
23 |
LowLevelNet.sendUDPPacket(config, sysMon.getInfo()); |
24 |
} |
25 |
|
26 |
} // public javahost |
27 |
|
28 |
} // class |