Exemple #1
0
        static void Main(string[] args)
        {
            CDNServer server = new CDNServer(CDNNetWork.GetLocalIPPoint());

            server.Start();
            server.Idle();
            Console.WriteLine(server);
            Console.ReadLine();
        }
Exemple #2
0
 public CDNClientForm()
 {
     InitializeComponent();
     server = new CDNClient(CDNNetWork.GetLocalIPPoint(), this);
     server.Start();
     server.Idle();
     this.localIpAddressControl.Value    = server.LocalEndpoint as IPEndPoint;
     this.localIpAddressControl.ReadOnly = true;
     this.clientTreeView.Nodes.Add(server.localRoot);
 }