Permalink
Browse files

Old files removed

svn path=/trunk/Mono.Nat/; revision=93362
  • Loading branch information...
1 parent 20f57df commit 7911912bdd39e9e65f27b062caa639f986e0377c @alanmcgovern alanmcgovern committed Jan 21, 2008
Showing with 160 additions and 2,510 deletions.
  1. +2 −0 AUTHORS
  2. +0 −19 AssemblyInfo.cs
  3. +0 −29 AsyncResults/GetAllMappingsAsyncResult.cs
  4. +0 −127 AsyncResults/PortMapAsyncResult.cs
  5. +0 −12 Enums/MapState.cs
  6. +0 −38 Enums/ProtocolType.cs
  7. +0 −22 EventArgs/DeviceEventArgs.cs
  8. +0 −33 Examples/AssemblyInfo.cs
  9. +0 −169 Examples/Program.cs
  10. +0 −61 Examples/TestClient.csproj
  11. +6 −0 INSTALL
  12. +0 −32 INatDevice.cs
  13. +24 −0 LICENSE
  14. +0 −33 Makefile
  15. +1 −0 Makefile.am
  16. +22 −0 Makefile.include
  17. +0 −87 Mapping.cs
  18. +0 −96 MappingException.cs
  19. +0 −51 Messages/uPnPMessages/DiscoverDeviceMessage.cs
  20. +0 −67 Messages/uPnPMessages/ErrorMessage.cs
  21. +0 −65 Messages/uPnPMessages/GetServicesMessage.cs
  22. +0 −82 Messages/uPnPMessages/Requests/CreatePortMappingMessage.cs
  23. +0 −72 Messages/uPnPMessages/Requests/DeletePortMappingMessage.cs
  24. +0 −26 Messages/uPnPMessages/Requests/GetExternalIPAddressMessage.cs
  25. +0 −29 Messages/uPnPMessages/Requests/GetGenericPortMappingEntry.cs
  26. +0 −34 Messages/uPnPMessages/Requests/GetSpecificPortMappingEntryMessage.cs
  27. +0 −48 Messages/uPnPMessages/Responses/CreatePortMappingResponseMessage.cs
  28. +0 −46 Messages/uPnPMessages/Responses/DeletePortMappingResponseMessage.cs
  29. +0 −27 Messages/uPnPMessages/Responses/GetExternalIPAddressResponseMessage.cs
  30. +0 −82 Messages/uPnPMessages/Responses/GetGenericPortMappingEntryResponseMessage.cs
  31. +0 −134 Messages/uPnPMessages/UpnpMessage.cs
  32. BIN Mono.Nat.snk
  33. +0 −264 NatController.cs
  34. +0 −634 UpnpNatDevice.cs
  35. +60 −0 autogen.sh
  36. +45 −0 configure.ac
  37. +0 −91 uPnP.csproj
View
@@ -0,0 +1,2 @@
+Alan McGovern <alan.mcgovern@gmail.com>
+Ben Motmans <ben.motmans@gmail.com>
View
@@ -1,19 +0,0 @@
-using System;
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-
-[assembly: AssemblyTitle("uPnP")]
-[assembly: AssemblyDescription("uPnP NAT Library")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("uPnP")]
-[assembly: AssemblyCopyright("Copyright Alan McGovern © 2006")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-[assembly: ComVisible(false)]
-[assembly: Guid("c8e81e95-9f15-4eb8-8982-3d2c9cd95dee")]
-[assembly: AssemblyVersion("0.5.0.0")]
-[assembly: AssemblyFileVersion("0.5.0.0")]
-
-[assembly: CLSCompliant(true)]
@@ -1,29 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Text;
-using System.Net;
-
-namespace Nat
-{
- internal class GetAllMappingsAsyncResult : PortMapAsyncResult
- {
- private List<Mapping> mappings;
- private Mapping specificMapping;
-
- public List<Mapping> Mappings
- {
- get { return this.mappings; }
- }
- public Mapping SpecificMapping
- {
- get { return this.specificMapping; }
- set { this.specificMapping = value; }
- }
-
- public GetAllMappingsAsyncResult(WebRequest request, AsyncCallback callback, object asyncState)
- : base(request, callback, asyncState)
- {
- mappings = new List<Mapping>();
- }
- }
-}
@@ -1,127 +0,0 @@
-//
-// PortMapAsyncResult.cs
-//
-// Authors:
-// Alan McGovern alan.mcgovern@gmail.com
-//
-// Copyright (C) 2006 Alan McGovern
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-
-
-using System;
-using System.Net;
-using System.Threading;
-
-namespace Nat
-{
- internal class PortMapAsyncResult : IAsyncResult
- {
- public bool IsCompleted
- {
- get { return this.isCompleted; }
- internal set { this.isCompleted = value; }
- }
- private bool isCompleted;
-
-
- public bool CompletedSynchronously
- {
- get { return this.completedSynchronously; }
- internal set { this.completedSynchronously = value; }
- }
- private bool completedSynchronously;
-
-
- WaitHandle IAsyncResult.AsyncWaitHandle
- {
- get { return this.waitHandle; }
- }
- internal ManualResetEvent AsyncWaitHandle
- {
- get { return this.waitHandle; }
- }
- private ManualResetEvent waitHandle;
-
-
- public object AsyncState
- {
- get { return this.asyncState; }
- }
- private object asyncState;
-
-
- public AsyncCallback CompletionCallback
- {
- get { return this.completionCallback; }
- }
- private AsyncCallback completionCallback;
-
-// TODO: Not used
-// internal bool UsingManHeader
-// {
-// get { return this.usingManHeader; }
-// }
-// private bool usingManHeader;
-
-
- internal WebRequest Request
- {
- get { return this.request; }
- set { this.request = value; }
- }
- private WebRequest request;
-
-
- internal MessageBase SavedMessage
- {
- get { return this.savedMessage; }
- set { this.savedMessage = value; }
- }
- private MessageBase savedMessage;
-
-
- protected PortMapAsyncResult(WebRequest request, AsyncCallback callback, object asyncState)
- {
- this.asyncState = asyncState;
- this.completionCallback = callback;
- this.request = request;
- this.waitHandle = new ManualResetEvent(false);
- }
-
- internal static PortMapAsyncResult Create(MessageBase message, WebRequest request, AsyncCallback storedCallback, object asyncState)
- {
- if (message is GetGenericPortMappingEntry)
- return new GetAllMappingsAsyncResult(request, storedCallback, asyncState);
-
- if (message is GetSpecificPortMappingEntryMessage)
- {
- GetSpecificPortMappingEntryMessage mapMessage = (GetSpecificPortMappingEntryMessage)message;
- GetAllMappingsAsyncResult result = new GetAllMappingsAsyncResult(request, storedCallback, asyncState);
- result.SpecificMapping = new Mapping(mapMessage.externalPort, mapMessage.protocol);
- return result;
- }
-
- return new PortMapAsyncResult(request, storedCallback, asyncState);
- }
- }
-}
View
@@ -1,12 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Text;
-
-namespace Nat
-{
- public enum MapState
- {
- AlreadyMapped,
- Available
- }
-}
View
@@ -1,38 +0,0 @@
-//
-// ProtocolType.cs
-//
-// Authors:
-// Alan McGovern alan.mcgovern@gmail.com
-//
-// Copyright (C) 2006 Alan McGovern
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-
-
-namespace Nat
-{
- public enum Protocol
- {
- Tcp,
- Udp
- }
-}
@@ -1,22 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Text;
-
-namespace Nat
-{
- public class DeviceEventArgs : EventArgs
- {
- public INatDevice Device
- {
- get { return this.device; }
- }
-
- private INatDevice device;
-
-
- public DeviceEventArgs(INatDevice device)
- {
- this.device = device;
- }
- }
-}
View
@@ -1,33 +0,0 @@
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-[assembly: AssemblyTitle("TestClient")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("TestClient")]
-[assembly: AssemblyCopyright("Copyright © 2006")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("765c8b6a-5e43-40b3-9afc-e42cbccd2566")]
-
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
Oops, something went wrong.

0 comments on commit 7911912

Please sign in to comment.