Example #1
0
        public void init(string format, Hashtable args)
        {
            cfg = (TopaddrConfig)config;
            if (cfg.use_dst != 0)
            {
                what = "Destination IP";
            }
            else
            {
                what = "Source IP";
            }

            switch (format)
            {
            case "pretty":
                print(String.Format(PRETTYHDR, what));
                break;

            case "html":
                print(HTMLHDR);
                print(String.Format(HTMLTITLE, cfg.topn, what));
                break;

            case "sidebox":
                print(HTMLHDR);
                print(SIDEBOXTITLE);
                break;
            }

            urlstr  = "#";
            current = 0;
            count   = 0;
        }
Example #2
0
 public void init()
 {
     cfg             = (TopaddrConfig)config;
     current_ivl_sec = 0;
     reset_state();
 }