Eigene Dateien/Visual Studio 2005/Projects/DCPlusPlus/DCPlusPlus/UPnP.cs

Go to the documentation of this file.
00001 using System;
00002 using System.Collections.Generic;
00003 using System.Text;
00004 using NUnit.Framework;
00005 using System.Threading;
00006 using System.Net;
00007 using System.Net.Sockets;
00008 using System.Xml;
00009 using System.IO;
00010 
00011 namespace DCPlusPlus
00012 {
00013     
00021     [TestFixture]
00022     public class UPnP
00023     {
00027         public class Router
00028         {
00029             //TODO include external ip and functions to add port mappings
00030             public Router(UPnP upnp)
00031             {
00032                 //give upnp class as parameter to use the upnp protocol functions
00033             }
00034         }
00035 
00039         public event RouterDiscoveredEventHandler RouterDiscovered; 
00043         public event RouterStateChangedEventHandler RouterStateChanged;
00049         public delegate void RouterDiscoveredEventHandler(Router router);
00055         public delegate void RouterStateChangedEventHandler(Router router);
00056 
00060         public void StartDiscovery()
00061         {
00062         }
00063 
00064         //TODO maybe better off if these are public
00065         private void SetupListeningSocket()
00066         {
00067         }
00068         private void CloseListeningSocket()
00069         {
00070         }
00071 
00072 
00073 
00074         //TODO add udp listening socket and http protocol stuff here
00075 
00076         #region Unit Testing
00081         [Test]
00082         public void TestDiscovery()
00083         {
00084         }
00085 
00086         #endregion
00087     }
00088 }

Generated on Wed Mar 7 19:09:21 2007 for DCPlusPlus by  doxygen 1.5.1-p1