69 lines
1.6 KiB
C#
69 lines
1.6 KiB
C#
// /**
|
|
// * File: Program.cs
|
|
// * Author: haraldwolff
|
|
// *
|
|
// * This file and it's content is copyrighted by the Author and / or copyright holder.
|
|
// * Any use wihtout proper permission is illegal and may lead to legal actions.
|
|
// *
|
|
// *
|
|
// **/
|
|
using System;
|
|
using Renci.SshNet;
|
|
using ln.skyscanner.identify;
|
|
using System.Net;
|
|
using System.Collections.Generic;
|
|
using ln.snmp.types;
|
|
using System.IO;
|
|
using ln.snmp;
|
|
using ln.snmp.endpoint;
|
|
using System.Diagnostics;
|
|
using ln.perfdb.storage;
|
|
using ln.logging;
|
|
using System.Security.Cryptography;
|
|
using ln.snmp.asn1;
|
|
using System.Linq;
|
|
using ln.types;
|
|
using System.Runtime.InteropServices;
|
|
using ln.snmp.rfc1213;
|
|
using ln.types.sync;
|
|
using ln.skyscanner.crawl;
|
|
using System.Threading;
|
|
using System.Net.NetworkInformation;
|
|
using ln.skyscanner.crawl.tests;
|
|
using Castle.DynamicProxy;
|
|
using ln.types.odb;
|
|
|
|
namespace ln.skyscanner
|
|
{
|
|
class MainClass
|
|
{
|
|
|
|
|
|
public static void Main(string[] args)
|
|
{
|
|
FileLogger fileLogger = new FileLogger("skyscanner.log");
|
|
fileLogger.MaxLogLevel = LogLevel.DEBUG;
|
|
Logger.Default.Backends.Add(fileLogger);
|
|
|
|
Logger.ConsoleLogger.MaxLogLevel = LogLevel.INFO;
|
|
|
|
Initialize();
|
|
|
|
SkyScanner skyScanner = new SkyScanner(args);
|
|
skyScanner.Start();
|
|
|
|
}
|
|
|
|
private static void Initialize()
|
|
{
|
|
//ODB<CrawlPool> dB = new ODB<CrawlPool>("testdb");
|
|
|
|
//dB.Root.HostForIP(CIDR.Parse("1.2.3.4"));
|
|
//dB.Root.HostForIP(CIDR.Parse("2.3.4.5"));
|
|
|
|
//dB.SavePersistent(dB.RootObject);
|
|
}
|
|
|
|
}
|
|
}
|