Permalink
Browse files

Cleaned up directory structure

  • Loading branch information...
1 parent 873e8a5 commit af8acfeb7b732530b9f983b11690f96b185b9a40 @saleyn committed Jul 21, 2013
View
7 .gitignore
@@ -3,15 +3,12 @@ Otp/bin
Otp/obj
OtpTest/bin
OtpTest/obj
-OtpTest1/bin
-OtpTest1/obj
UnitTest/bin
UnitTest/obj
-UpgradeLog.XML
+UpgradeLog.*
*.testrunconfig
*.*.suo
*.suo
-/Otp/Otp.csproj.user
-/UnitTest/*.user
+*.user
/Otp/TestResults
View
92 Otp/Erlang/PatternMatcher.cs
@@ -0,0 +1,92 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading;
+
+namespace Otp.Erlang
+{
+ /// <summary>
+ /// Pattern matcher that implements a container of patterns to be
+ /// matched against a given Erlang term. On successful match, the
+ /// corresponding action registered with that pattern gets invoked
+ /// </summary>
+ public class PatternMatcher
+ {
+ struct KeyValueData
+ {
+ public readonly int ID;
+ public readonly Erlang.Object Pattern;
+ public readonly Action<int, Erlang.VarBind> Action;
+
+ public KeyValueData(int id, Erlang.Object p, Action<int, Erlang.VarBind> b)
+ {
+ ID = id; Pattern = p; Action = b;
+ }
+ }
+
+ List<KeyValueData> m_patterns = new List<KeyValueData>();
+ int m_lastID = 0;
+
+ /// <summary>
+ /// Add a matching pattern to the collection
+ /// </summary>
+ /// <typeparam name="TContext">Type of context passed to matchAction</typeparam>
+ /// <param name="context">Context passed to matchAction</param>
+ /// <param name="matchAction">Action to invoke on successful match</param>
+ /// <param name="pattern">Pattern to compile</param>
+ /// <param name="args">Arguments used in the pattern</param>
+ /// <returns>ID of the newly added pattern</returns>
+ public int Add<TContext>(TContext context, Action<int, Erlang.VarBind, TContext> matchAction,
+ string pattern, params object[] args)
+ {
+ int id = ++m_lastID;
+ var p = new KeyValueData(id, Erlang.Object.Format(pattern, args), (i, b) => matchAction(i, b, context));
+ m_patterns.Add(p);
+ return id;
+ }
+
+ /// <summary>
+ /// Remove pattern from collection given its ID
+ /// </summary>
+ public void Remove(int id)
+ {
+ int i = m_patterns.FindIndex(d => d.ID == id);
+
+ if (i != -1)
+ m_patterns.RemoveAt(i);
+ }
+
+ /// <summary>
+ /// Match a term against the patterns in the collection.
+ /// The first successful match will result in invokation of the action
+ /// associated with the pattern
+ /// </summary>
+ /// <param name="term">Term to match against patterns</param>
+ /// <returns>ID of the pattern that matched, or -1 if there were no matches</returns>
+ public int Match(Erlang.Object term)
+ {
+ var binding = new VarBind();
+
+ foreach (var p in m_patterns)
+ {
+ if (p.Pattern.match(term, binding))
+ {
+ p.Action(p.ID, binding);
+ return p.ID;
+ }
+ binding.clear();
+ }
+
+ return -1;
+ }
+
+ /// <summary>
+ /// Clear the collection of patterns
+ /// </summary>
+ public void Clear()
+ {
+ m_patterns.Clear();
+ }
+ }
+}
View
300 Otp/Otp.2008.bdsproj
@@ -1,300 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<BorlandProject>
- <PersonalityInfo>
- <Option>
- <Option Name="Personality" Type="String">CSharp.Personality</Option>
- <Option Name="GUID" Type="String">{71378BB0-72DB-4D89-97EA-E667752C9A7C}</Option>
- <Option Name="ProjectType" Type="String">Application</Option>
- <Option Name="Version" Type="String">1.0</Option>
- </Option>
- </PersonalityInfo>
- <CSharp.Personality>
- <Options>
- <SelectedOptionSet Name="OptionsSet" Type="String">Debug <SelectedOptionSet Name="OptionsSet" Type="String">Debug</SelectedOptionSet>
- </SelectedOptionSet>
- <OptionsSet Name="Debug">
- <Options>
- <Options Name="DebugInformation" Type="Boolean">True</Options>
- <Options Name="Optimization" Type="Boolean">False</Options>
- <Options Name="Incremental" Type="Boolean">False</Options>
- <Options Name="Overflow" Type="Boolean">True</Options>
- <Options Name="DocumentationFile" Type="String"></Options>
- <Options Name="ivUnsafe" Type="Boolean">False</Options>
- <Options Name="WarningAsError" Type="Boolean">False</Options>
- <Options Name="Warning" Type="Integer">4</Options>
- <Options Name="Defines" Type="String">TRACE;DEBUG</Options>
- <Options Name="TargetName" Type="String"></Options>
- <Options Name="TargetType" Type="String">Console</Options>
- <Options Name="BaseAddress" Type="String">285212672</Options>
- <Options Name="OutputDirectory" Type="String">bin\</Options>
- <Options Name="DefaultNamespace" Type="String">Otp.Net</Options>
- <Options Name="Main" Type="String"></Options>
- <Options Name="RunParams" Type="String">wolf</Options>
- <Options Name="HostApplication" Type="String"></Options>
- <Options Name="Launcher" Type="String"></Options>
- <Options Name="UseLauncher" Type="Boolean">False</Options>
- <Options Name="DebugCWD" Type="String"></Options>
- <Options Name="RemotePath" Type="String"></Options>
- <Options Name="RemoteHost" Type="String"></Options>
- <Options Name="RemoteLauncher" Type="String"></Options>
- <Options Name="RemoteDebug" Type="Boolean">False</Options>
- <Options Name="AspNetUseHostServer" Type="Boolean">False</Options>
- <Options Name="AspNetLaunchBrowser" Type="Boolean">False</Options>
- <Options Name="AspNetStartPage" Type="String"></Options>
- <Options Name="AspNetHostServer" Type="String">IIS</Options>
- <Options Name="AspNetCassiniVirtualDirectory" Type="String"></Options>
- <Options Name="AspNetIISVirtualDirectory" Type="String"></Options>
- <Options Name="AspNetHTTPAddress" Type="String"></Options>
- <Options Name="ApplicationIcon" Type="String"></Options>
- <Options Name="BuildInOutput" Type="Boolean">True</Options>
- <Options Name="RemoteCWD" Type="String"></Options>
- </Options>
- </OptionsSet>
- <OptionsSet Name="Release">
- <Options>
- <Options Name="DebugInformation" Type="Boolean">False</Options>
- <Options Name="Optimization" Type="Boolean">True</Options>
- <Options Name="Incremental" Type="Boolean">False</Options>
- <Options Name="Overflow" Type="Boolean">False</Options>
- <Options Name="DocumentationFile" Type="String"></Options>
- <Options Name="ivUnsafe" Type="Boolean">False</Options>
- <Options Name="WarningAsError" Type="Boolean">False</Options>
- <Options Name="Warning" Type="Integer">4</Options>
- <Options Name="Defines" Type="String">TRACE</Options>
- <Options Name="TargetName" Type="String"></Options>
- <Options Name="TargetType" Type="String">Console</Options>
- <Options Name="BaseAddress" Type="String">285212672</Options>
- <Options Name="OutputDirectory" Type="String">C:\Documents and Settings\vladum\Mina dokument\Visual Studio Projects\Otp.Net\bin\</Options>
- <Options Name="DefaultNamespace" Type="String">Otp.Net</Options>
- <Options Name="Main" Type="String"></Options>
- <Options Name="RunParams" Type="String"></Options>
- <Options Name="HostApplication" Type="String"></Options>
- <Options Name="Launcher" Type="String"></Options>
- <Options Name="UseLauncher" Type="Boolean">False</Options>
- <Options Name="DebugCWD" Type="String"></Options>
- <Options Name="RemotePath" Type="String"></Options>
- <Options Name="RemoteHost" Type="String"></Options>
- <Options Name="RemoteLauncher" Type="String"></Options>
- <Options Name="RemoteDebug" Type="Boolean">False</Options>
- <Options Name="AspNetUseHostServer" Type="Boolean">False</Options>
- <Options Name="AspNetLaunchBrowser" Type="Boolean">False</Options>
- <Options Name="AspNetStartPage" Type="String"></Options>
- <Options Name="AspNetHostServer" Type="String">IIS</Options>
- <Options Name="AspNetCassiniVirtualDirectory" Type="String"></Options>
- <Options Name="AspNetIISVirtualDirectory" Type="String"></Options>
- <Options Name="AspNetHTTPAddress" Type="String"></Options>
- <Options Name="ApplicationIcon" Type="String"></Options>
- <Options Name="BuildInOutput" Type="Boolean">True</Options>
- <Options Name="RemoteCWD" Type="String"></Options>
- </Options>
- </OptionsSet>
- </Options>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <FileList>
- <File FileName="c:\windows\microsoft.net\framework\v1.1.4322\System.dll" ContainerId="DotNetAssemblyCompiler" ModuleName="System" AssemblyName="System" Version="1.0.5000.0"/>
- <File FileName="c:\windows\microsoft.net\framework\v1.1.4322\System.Data.dll" ContainerId="DotNetAssemblyCompiler" ModuleName="System.Data" AssemblyName="System.Data" Version="1.0.5000.0"/>
- <File FileName="c:\windows\microsoft.net\framework\v1.1.4322\System.XML.dll" ContainerId="DotNetAssemblyCompiler" ModuleName="System.XML" AssemblyName="System.Xml" Version="1.0.5000.0"/>
- <File FileName="AbstractConnection.cs" ContainerId="CSharpCompiler" ModuleName="AbstractConnection"/>
- <File FileName="AbstractNode.cs" ContainerId="CSharpCompiler" ModuleName="AbstractNode"/>
- <File FileName="AssemblyInfo.cs" ContainerId="CSharpCompiler" ModuleName="AssemblyInfo"/>
- <File FileName="Link.cs" ContainerId="CSharpCompiler" ModuleName="Link"/>
- <File FileName="Links.cs" ContainerId="CSharpCompiler" ModuleName="Links"/>
- <File FileName="OtpAuthException.cs" ContainerId="CSharpCompiler" ModuleName="OtpAuthException"/>
- <File FileName="OtpConnection.cs" ContainerId="CSharpCompiler" ModuleName="OtpConnection"/>
- <File FileName="OtpCookedConnection.cs" ContainerId="CSharpCompiler" ModuleName="OtpCookedConnection"/>
- <File FileName="OtpEpmd.cs" ContainerId="CSharpCompiler" ModuleName="OtpEpmd"/>
- <File FileName="OtpException.cs" ContainerId="CSharpCompiler" ModuleName="OtpException"/>
- <File FileName="OtpExternal.cs" ContainerId="CSharpCompiler" ModuleName="OtpExternal"/>
- <File FileName="OtpInputStream.cs" ContainerId="CSharpCompiler" ModuleName="OtpInputStream"/>
- <File FileName="OtpLocalNode.cs" ContainerId="CSharpCompiler" ModuleName="OtpLocalNode"/>
- <File FileName="OtpMbox.cs" ContainerId="CSharpCompiler" ModuleName="OtpMbox"/>
- <File FileName="OtpMsg.cs" ContainerId="CSharpCompiler" ModuleName="OtpMsg"/>
- <File FileName="OtpNode.cs" ContainerId="CSharpCompiler" ModuleName="OtpNode"/>
- <File FileName="OtpNodeStatus.cs" ContainerId="CSharpCompiler" ModuleName="OtpNodeStatus"/>
- <File FileName="OtpOutputStream.cs" ContainerId="CSharpCompiler" ModuleName="OtpOutputStream"/>
- <File FileName="OtpPeer.cs" ContainerId="CSharpCompiler" ModuleName="OtpPeer"/>
- <File FileName="OtpSelf.cs" ContainerId="CSharpCompiler" ModuleName="OtpSelf"/>
- <File FileName="OtpServer.cs" ContainerId="CSharpCompiler" ModuleName="OtpServer"/>
- <File FileName="SupportClass.cs" ContainerId="CSharpCompiler" ModuleName="SupportClass"/>
- <File FileName="Erlang\Atom.cs" ContainerId="CSharpCompiler" ModuleName="Atom"/>
- <File FileName="Erlang\Binary.cs" ContainerId="CSharpCompiler" ModuleName="Binary"/>
- <File FileName="Erlang\Boolean.cs" ContainerId="CSharpCompiler" ModuleName="Boolean"/>
- <File FileName="Erlang\Byte.cs" ContainerId="CSharpCompiler" ModuleName="Byte"/>
- <File FileName="Erlang\Char.cs" ContainerId="CSharpCompiler" ModuleName="Char"/>
- <File FileName="Erlang\DecodeException.cs" ContainerId="CSharpCompiler" ModuleName="DecodeException"/>
- <File FileName="Erlang\Double.cs" ContainerId="CSharpCompiler" ModuleName="Double"/>
- <File FileName="Erlang\ErlangException.cs" ContainerId="CSharpCompiler" ModuleName="ErlangException"/>
- <File FileName="Erlang\Exit.cs" ContainerId="CSharpCompiler" ModuleName="Exit"/>
- <File FileName="Erlang\Int.cs" ContainerId="CSharpCompiler" ModuleName="Int"/>
- <File FileName="Erlang\List.cs" ContainerId="CSharpCompiler" ModuleName="List"/>
- <File FileName="Erlang\Long.cs" ContainerId="CSharpCompiler" ModuleName="Long"/>
- <File FileName="Erlang\Object.cs" ContainerId="CSharpCompiler" ModuleName="Object"/>
- <File FileName="Erlang\Pid.cs" ContainerId="CSharpCompiler" ModuleName="Pid"/>
- <File FileName="Erlang\Port.cs" ContainerId="CSharpCompiler" ModuleName="Port"/>
- <File FileName="Erlang\RangeException.cs" ContainerId="CSharpCompiler" ModuleName="RangeException"/>
- <File FileName="Erlang\Ref.cs" ContainerId="CSharpCompiler" ModuleName="Ref"/>
- <File FileName="Erlang\Short.cs" ContainerId="CSharpCompiler" ModuleName="Short"/>
- <File FileName="Erlang\String.cs" ContainerId="CSharpCompiler" ModuleName="String"/>
- <File FileName="Erlang\Tuple.cs" ContainerId="CSharpCompiler" ModuleName="Tuple"/>
- <File FileName="Erlang\UInt.cs" ContainerId="CSharpCompiler" ModuleName="UInt"/>
- <File FileName="Erlang\UShort.cs" ContainerId="CSharpCompiler" ModuleName="UShort"/>
- <File FileName="Test.cs" ContainerId="CSharpCompiler" ModuleName="Test"/>
- <File FileName="GenericQueue.cs" ContainerId="CSharpCompiler" ModuleName="GenericQueue"/>
- <File FileName="Erlang\CloneObject.cs" ContainerId="CSharpCompiler" ModuleName="CloneObject"/>
- <File FileName="Erlang\BigInteger.cs" ContainerId="CSharpCompiler" ModuleName="BigInteger"/>
- </FileList>
- </CSharp.Personality>
- <ImportData>
- <CSharpProjectOptions ApplicationIcon="" AssemblyKeyContainerName="" AssemblyName="Otp.Net" AssemblyOriginatorKeyFile="" DefaultClientScript="JScript" DefaultHTMLPageLayout="Grid" DefaultTargetSchema="IE50" DelaySign="false" OutputType="Exe" RootNamespace="Otp.Net" StartupObject=""/>
- <CSharpLocalOptions Name="Debug" AllowUnsafeBlocks="false" BaseAddress="285212672" CheckForOverflowUnderflow="false" ConfigurationOverrideFile="" DefineConstants="DEBUG;TRACE" DocumentationFile="" DebugSymbols="true" FileAlignment="4096" IncrementalBuild="true" Optimize="false" OutputPath="C:\Documents and Settings\vladum\Mina dokument\Visual Studio Projects\Otp.Net\bin\Debug\" RegisterForComInterop="false" RemoveIntegerChecks="false" TreatWarningsAsErrors="false" WarningLevel="4"/>
- <CSharpLocalOptions Name="Release" AllowUnsafeBlocks="false" BaseAddress="285212672" CheckForOverflowUnderflow="false" ConfigurationOverrideFile="" DefineConstants="TRACE" DocumentationFile="" DebugSymbols="false" FileAlignment="4096" IncrementalBuild="false" Optimize="true" OutputPath="C:\Documents and Settings\vladum\Mina dokument\Visual Studio Projects\Otp.Net\bin\" RegisterForComInterop="false" RemoveIntegerChecks="false" TreatWarningsAsErrors="false" WarningLevel="4"/>
- </ImportData>
-</BorlandProject>
View
108 Otp/Otp.2008.csproj
@@ -1,108 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>9.0.21022</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{8155F56B-4925-406C-8619-7D0E57DD7FE1}</ProjectGuid>
- <OutputType>Library</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>Otp</RootNamespace>
- <AssemblyName>Otp</AssemblyName>
- <FileUpgradeFlags>
- </FileUpgradeFlags>
- <OldToolsVersion>3.5</OldToolsVersion>
- <UpgradeBackupLocation>
- </UpgradeBackupLocation>
- <TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>false</Optimize>
- <OutputPath>bin\Debug\</OutputPath>
- <DefineConstants>DEBUG;TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <DebugType>pdbonly</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>bin\Release\</OutputPath>
- <DefineConstants>TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="System" />
- <Reference Include="System.configuration" />
- <Reference Include="System.Data" />
- <Reference Include="System.Xml" />
- </ItemGroup>
- <ItemGroup>
- <Compile Include="AbstractConnection.cs" />
- <Compile Include="AbstractNode.cs" />
- <Compile Include="Erlang\Format.cs" />
- <Compile Include="Erlang\VarBind.cs" />
- <Compile Include="Erlang\Var.cs" />
- <Compile Include="OtpTrace.cs" />
- <Compile Include="Erlang\Atom.cs" />
- <Compile Include="Erlang\BigInteger.cs" />
- <Compile Include="Erlang\Binary.cs" />
- <Compile Include="Erlang\Boolean.cs" />
- <Compile Include="Erlang\Byte.cs" />
- <Compile Include="Erlang\Char.cs" />
- <Compile Include="Erlang\CloneObject.cs" />
- <Compile Include="Erlang\Exception.cs" />
- <Compile Include="Erlang\Double.cs" />
- <Compile Include="Erlang\ErlangException.cs" />
- <Compile Include="Erlang\Exit.cs" />
- <Compile Include="Erlang\Int.cs" />
- <Compile Include="Erlang\List.cs" />
- <Compile Include="Erlang\Long.cs" />
- <Compile Include="Erlang\Object.cs" />
- <Compile Include="Erlang\Pid.cs" />
- <Compile Include="Erlang\Port.cs" />
- <Compile Include="Erlang\Ref.cs" />
- <Compile Include="Erlang\Short.cs" />
- <Compile Include="Erlang\String.cs" />
- <Compile Include="Erlang\Tuple.cs" />
- <Compile Include="Erlang\UInt.cs" />
- <Compile Include="Erlang\UShort.cs" />
- <Compile Include="GenericQueue.cs" />
- <Compile Include="Link.cs" />
- <Compile Include="Links.cs" />
- <Compile Include="OtpAuthException.cs" />
- <Compile Include="OtpConnection.cs" />
- <Compile Include="OtpCookedConnection.cs" />
- <Compile Include="OtpEpmd.cs" />
- <Compile Include="OtpException.cs" />
- <Compile Include="OtpExternal.cs" />
- <Compile Include="OtpInputStream.cs" />
- <Compile Include="OtpLocalNode.cs" />
- <Compile Include="OtpMbox.cs" />
- <Compile Include="OtpMsg.cs" />
- <Compile Include="OtpNode.cs" />
- <Compile Include="OtpNodeStatus.cs" />
- <Compile Include="OtpOutputStream.cs" />
- <Compile Include="OtpPeer.cs" />
- <Compile Include="OtpSelf.cs" />
- <Compile Include="OtpSystem.cs" />
- <Compile Include="Properties\AssemblyInfo.cs" />
- <Compile Include="SupportClass.cs" />
- <Compile Include="Test.cs" />
- </ItemGroup>
- <ItemGroup>
- <None Include="App.config" />
- <None Include="ClassDiagram1.cd" />
- </ItemGroup>
- <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
- <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
- Other similar extension points exist, see Microsoft.Common.targets.
- <Target Name="BeforeBuild">
- </Target>
- <Target Name="AfterBuild">
- </Target>
- -->
-</Project>
View
54 Otp/Otp.2008.sln
@@ -1,54 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 10.00
-# Visual Studio 2008
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OtpTest1", "..\OtpTest1\OtpTest1.csproj", "{51C10949-3327-4CE9-A4D0-58F1336284F4}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OtpTest", "..\UnitTest\OtpTest.csproj", "{E031FCAE-9E50-4AD9-8838-9DD015B9319C}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Otp", "Otp.csproj", "{9A16CEEB-FC26-4D35-8F9E-42DA30212F69}"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Any CPU = Debug|Any CPU
- Debug|Mixed Platforms = Debug|Mixed Platforms
- Debug|Win32 = Debug|Win32
- Release|Any CPU = Release|Any CPU
- Release|Mixed Platforms = Release|Mixed Platforms
- Release|Win32 = Release|Win32
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {51C10949-3327-4CE9-A4D0-58F1336284F4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {51C10949-3327-4CE9-A4D0-58F1336284F4}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {51C10949-3327-4CE9-A4D0-58F1336284F4}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
- {51C10949-3327-4CE9-A4D0-58F1336284F4}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
- {51C10949-3327-4CE9-A4D0-58F1336284F4}.Debug|Win32.ActiveCfg = Debug|Any CPU
- {51C10949-3327-4CE9-A4D0-58F1336284F4}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {51C10949-3327-4CE9-A4D0-58F1336284F4}.Release|Any CPU.Build.0 = Release|Any CPU
- {51C10949-3327-4CE9-A4D0-58F1336284F4}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
- {51C10949-3327-4CE9-A4D0-58F1336284F4}.Release|Mixed Platforms.Build.0 = Release|Any CPU
- {51C10949-3327-4CE9-A4D0-58F1336284F4}.Release|Win32.ActiveCfg = Release|Any CPU
- {E031FCAE-9E50-4AD9-8838-9DD015B9319C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {E031FCAE-9E50-4AD9-8838-9DD015B9319C}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {E031FCAE-9E50-4AD9-8838-9DD015B9319C}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
- {E031FCAE-9E50-4AD9-8838-9DD015B9319C}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
- {E031FCAE-9E50-4AD9-8838-9DD015B9319C}.Debug|Win32.ActiveCfg = Debug|Any CPU
- {E031FCAE-9E50-4AD9-8838-9DD015B9319C}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {E031FCAE-9E50-4AD9-8838-9DD015B9319C}.Release|Any CPU.Build.0 = Release|Any CPU
- {E031FCAE-9E50-4AD9-8838-9DD015B9319C}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
- {E031FCAE-9E50-4AD9-8838-9DD015B9319C}.Release|Mixed Platforms.Build.0 = Release|Any CPU
- {E031FCAE-9E50-4AD9-8838-9DD015B9319C}.Release|Win32.ActiveCfg = Release|Any CPU
- {9A16CEEB-FC26-4D35-8F9E-42DA30212F69}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {9A16CEEB-FC26-4D35-8F9E-42DA30212F69}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {9A16CEEB-FC26-4D35-8F9E-42DA30212F69}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
- {9A16CEEB-FC26-4D35-8F9E-42DA30212F69}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
- {9A16CEEB-FC26-4D35-8F9E-42DA30212F69}.Debug|Win32.ActiveCfg = Debug|Any CPU
- {9A16CEEB-FC26-4D35-8F9E-42DA30212F69}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {9A16CEEB-FC26-4D35-8F9E-42DA30212F69}.Release|Any CPU.Build.0 = Release|Any CPU
- {9A16CEEB-FC26-4D35-8F9E-42DA30212F69}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
- {9A16CEEB-FC26-4D35-8F9E-42DA30212F69}.Release|Mixed Platforms.Build.0 = Release|Any CPU
- {9A16CEEB-FC26-4D35-8F9E-42DA30212F69}.Release|Win32.ActiveCfg = Release|Any CPU
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
-EndGlobal
View
62 Otp/Otp.sln
@@ -1,28 +1,34 @@
-
-Microsoft Visual Studio Solution File, Format Version 9.00
-# Visual Studio 2005
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "otp", "otp.csproj", "{9A16CEEB-FC26-4D35-8F9E-42DA30212F69}"
-EndProject
-Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{0961AE8C-1547-4F9A-BE4E-632B021D5727}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OtpTest1", "..\OtpTest1\OtpTest1.csproj", "{51C10949-3327-4CE9-A4D0-58F1336284F4}"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Any CPU = Debug|Any CPU
- Release|Any CPU = Release|Any CPU
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {9A16CEEB-FC26-4D35-8F9E-42DA30212F69}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {9A16CEEB-FC26-4D35-8F9E-42DA30212F69}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {9A16CEEB-FC26-4D35-8F9E-42DA30212F69}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {9A16CEEB-FC26-4D35-8F9E-42DA30212F69}.Release|Any CPU.Build.0 = Release|Any CPU
- {51C10949-3327-4CE9-A4D0-58F1336284F4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {51C10949-3327-4CE9-A4D0-58F1336284F4}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {51C10949-3327-4CE9-A4D0-58F1336284F4}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {51C10949-3327-4CE9-A4D0-58F1336284F4}.Release|Any CPU.Build.0 = Release|Any CPU
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
-EndGlobal
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 2012
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "otp", "otp.csproj", "{9A16CEEB-FC26-4D35-8F9E-42DA30212F69}"
+EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{0961AE8C-1547-4F9A-BE4E-632B021D5727}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OtpTest", "..\OtpTest\OtpTest.csproj", "{51C10949-3327-4CE9-A4D0-58F1336284F4}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OtpUnitTest", "..\UnitTest\OtpUnitTest.csproj", "{E031FCAE-9E50-4AD9-8838-9DD015B9319C}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {9A16CEEB-FC26-4D35-8F9E-42DA30212F69}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {9A16CEEB-FC26-4D35-8F9E-42DA30212F69}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {9A16CEEB-FC26-4D35-8F9E-42DA30212F69}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {9A16CEEB-FC26-4D35-8F9E-42DA30212F69}.Release|Any CPU.Build.0 = Release|Any CPU
+ {51C10949-3327-4CE9-A4D0-58F1336284F4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {51C10949-3327-4CE9-A4D0-58F1336284F4}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {51C10949-3327-4CE9-A4D0-58F1336284F4}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {51C10949-3327-4CE9-A4D0-58F1336284F4}.Release|Any CPU.Build.0 = Release|Any CPU
+ {E031FCAE-9E50-4AD9-8838-9DD015B9319C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {E031FCAE-9E50-4AD9-8838-9DD015B9319C}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {E031FCAE-9E50-4AD9-8838-9DD015B9319C}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {E031FCAE-9E50-4AD9-8838-9DD015B9319C}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
View
47 OtpTest1/OtpTest1.csproj → OtpTest/OtpTest.csproj
@@ -1,4 +1,5 @@
-<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
+<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
@@ -11,9 +12,26 @@
<AssemblyName>OtpTest1</AssemblyName>
<FileUpgradeFlags>
</FileUpgradeFlags>
- <OldToolsVersion>2.0</OldToolsVersion>
+ <OldToolsVersion>3.5</OldToolsVersion>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
+ <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <PublishUrl>publish\</PublishUrl>
+ <Install>true</Install>
+ <InstallFrom>Disk</InstallFrom>
+ <UpdateEnabled>false</UpdateEnabled>
+ <UpdateMode>Foreground</UpdateMode>
+ <UpdateInterval>7</UpdateInterval>
+ <UpdateIntervalUnits>Days</UpdateIntervalUnits>
+ <UpdatePeriodically>false</UpdatePeriodically>
+ <UpdateRequired>false</UpdateRequired>
+ <MapFileExtensions>true</MapFileExtensions>
+ <ApplicationRevision>0</ApplicationRevision>
+ <ApplicationVersion>1.0.0.%2a</ApplicationVersion>
+ <IsWebBootstrapper>false</IsWebBootstrapper>
+ <UseApplicationTrust>false</UseApplicationTrust>
+ <BootstrapperEnabled>true</BootstrapperEnabled>
+ <TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@@ -38,16 +56,31 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
- <Compile Include="Test1.cs" />
+ <Compile Include="Test.cs" />
</ItemGroup>
<ItemGroup>
- <ProjectReference Include="..\Otp\Otp.csproj">
- <Project>{9A16CEEB-FC26-4D35-8F9E-42DA30212F69}</Project>
- <Name>Otp</Name>
+ <Folder Include="Properties\" />
+ </ItemGroup>
+ <ItemGroup>
+ <BootstrapperPackage Include="Microsoft.Net.Client.3.5">
+ <Visible>False</Visible>
+ <ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
+ <Install>false</Install>
+ </BootstrapperPackage>
+ <BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
+ <Visible>False</Visible>
+ <ProductName>.NET Framework 3.5 SP1</ProductName>
+ <Install>true</Install>
+ </BootstrapperPackage>
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\Otp\otp.csproj">
+ <Project>{9a16ceeb-fc26-4d35-8f9e-42da30212f69}</Project>
+ <Name>otp</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
- <Folder Include="Properties\" />
+ <None Include="app.config" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
View
2 OtpTest1/Test1.cs → OtpTest/Test.cs
@@ -5,7 +5,7 @@
namespace Otp
{
- class Test1
+ class Test
{
private static void OnReadWrite(AbstractConnection con, AbstractConnection.Operation op,
long lastBytes, long totalBytes, long totalMsgs)
View
3 OtpTest/app.config
@@ -0,0 +1,3 @@
+<?xml version="1.0"?>
+<configuration>
+<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>
View
59 OtpTest1/OtpTest1.2008.csproj
@@ -1,59 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>9.0.21022</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{E1AC898B-1B0C-4DFC-82A8-0D547EBDFA8A}</ProjectGuid>
- <OutputType>Exe</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>OtpTest1</RootNamespace>
- <AssemblyName>OtpTest1</AssemblyName>
- <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
- <FileAlignment>512</FileAlignment>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>false</Optimize>
- <OutputPath>bin\Debug\</OutputPath>
- <DefineConstants>DEBUG;TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <DebugType>pdbonly</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>bin\Release\</OutputPath>
- <DefineConstants>TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="System" />
- <Reference Include="System.Core">
- <RequiredTargetFramework>3.5</RequiredTargetFramework>
- </Reference>
- </ItemGroup>
- <ItemGroup>
- <Compile Include="Test1.cs" />
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\Otp\Otp.2008.csproj">
- <Project>{8155F56B-4925-406C-8619-7D0E57DD7FE1}</Project>
- <Name>Otp.2008</Name>
- </ProjectReference>
- </ItemGroup>
- <ItemGroup>
- <Folder Include="Properties\" />
- </ItemGroup>
- <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
- <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
- Other similar extension points exist, see Microsoft.Common.targets.
- <Target Name="BeforeBuild">
- </Target>
- <Target Name="AfterBuild">
- </Target>
- -->
-</Project>
View
32 OtpTest1/OtpTest1.2008.sln
@@ -1,32 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 10.00
-# Visual Studio 2008
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OtpTest1.2008", "OtpTest1.2008.csproj", "{E1AC898B-1B0C-4DFC-82A8-0D547EBDFA8A}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Otp.2008", "..\Otp\Otp.2008.csproj", "{8155F56B-4925-406C-8619-7D0E57DD7FE1}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OtpTest", "..\UnitTest\OtpTest.csproj", "{E031FCAE-9E50-4AD9-8838-9DD015B9319C}"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Any CPU = Debug|Any CPU
- Release|Any CPU = Release|Any CPU
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {E1AC898B-1B0C-4DFC-82A8-0D547EBDFA8A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {E1AC898B-1B0C-4DFC-82A8-0D547EBDFA8A}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {E1AC898B-1B0C-4DFC-82A8-0D547EBDFA8A}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {E1AC898B-1B0C-4DFC-82A8-0D547EBDFA8A}.Release|Any CPU.Build.0 = Release|Any CPU
- {8155F56B-4925-406C-8619-7D0E57DD7FE1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {8155F56B-4925-406C-8619-7D0E57DD7FE1}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {8155F56B-4925-406C-8619-7D0E57DD7FE1}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {8155F56B-4925-406C-8619-7D0E57DD7FE1}.Release|Any CPU.Build.0 = Release|Any CPU
- {E031FCAE-9E50-4AD9-8838-9DD015B9319C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {E031FCAE-9E50-4AD9-8838-9DD015B9319C}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {E031FCAE-9E50-4AD9-8838-9DD015B9319C}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {E031FCAE-9E50-4AD9-8838-9DD015B9319C}.Release|Any CPU.Build.0 = Release|Any CPU
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
-EndGlobal
View
6 OtpTest1/OtpTest1.2008.vsmdi
@@ -1,6 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<TestLists xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2006">
- <TestList name="Lists of Tests" id="8c43106b-9dc1-4907-a29f-aa66a61bf5b6">
- <RunConfiguration id="db84d276-c9c4-4468-87db-ea1427f538c6" name="Local Test Run" storage="localtestrun.testrunconfig" type="Microsoft.VisualStudio.TestTools.Common.TestRunConfiguration, Microsoft.VisualStudio.QualityTools.Common, PublicKeyToken=b03f5f7f11d50a3a" />
- </TestList>
-</TestLists>
View
0 UnitTest/OtpTest.csproj → UnitTest/OtpUnitTest.csproj
File renamed without changes.

0 comments on commit af8acfe

Please sign in to comment.