ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/host/java/JavaHost.java
Revision: 1.1
Committed: Mon Nov 27 19:48:03 2000 UTC (23 years, 9 months ago) by ab11
Branch: MAIN
Log Message:
Initial Version - No support for TCP Heartbeat, Logging, Quitting (one while(true) loop)

File Contents

# User Rev Content
1 ab11 1.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