net.fenyo.gnetwatch
Class Main

java.lang.Object
  extended by net.fenyo.gnetwatch.Main

public class Main
extends java.lang.Object

This class is dedicated to maintain main operations.

Version:
$Id: Main.java,v 1.18 2008/04/15 23:58:17 fenyo Exp $
Author:
Alexandre Fenyo

Field Summary
private  CaptureManager capture_mgr
           
private  Config config
           
private  GUI gui
           
private  CaptureManager.HandlePacket handler
           
private static Log log
           
 
Constructor Summary
Main(Config config, CaptureManager capture_mgr)
          Constructor.
 
Method Summary
 void setGUI(GUI gui)
          Defines the GUI instance.
 void startDiscover()
          Ask to spawn tethereal instances and add targets for new discovered IP targets.
 void stopDiscover()
          Ask to kill tethereal instances if this is the last listener.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static Log log

config

private final Config config

gui

private GUI gui

capture_mgr

private final CaptureManager capture_mgr

handler

private CaptureManager.HandlePacket handler
Constructor Detail

Main

public Main(Config config,
            CaptureManager capture_mgr)
Constructor. main thread

Parameters:
config - configuration.
Method Detail

setGUI

public void setGUI(GUI gui)
Defines the GUI instance.

Parameters:
GUI - gui.

startDiscover

public void startDiscover()
Ask to spawn tethereal instances and add targets for new discovered IP targets.

Parameters:
none. -

stopDiscover

public void stopDiscover()
Ask to kill tethereal instances if this is the last listener.

Parameters:
none. -