Esempio n. 1
0
        static void Main(string[] args)
        {
            TcpPluginOptions Options = new TcpPluginOptions();            
            Options.units = "ms";
            Options.ProcessArgs(args);            

            TcpPlugin plugin = new TcpPlugin(Options);
            plugin.Connect();
            String value = plugin.ReceiveBanner();
            plugin.Disconnect();
            plugin.AppendValue(value);
            plugin.AppendValue("Response time", plugin.GetResponseTime());            
            plugin.Finish();
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            TcpPluginOptions Options = new TcpPluginOptions();

            Options.units = "ms";
            Options.ProcessArgs(args);

            TcpPlugin plugin = new TcpPlugin(Options);

            plugin.Connect();
            String value = plugin.ReceiveBanner();

            plugin.Disconnect();
            plugin.AppendValue(value);
            plugin.AppendValue("Response time", plugin.GetResponseTime());
            plugin.Finish();
        }