Skip to content

Commit

Permalink
Initial checkin.
Browse files Browse the repository at this point in the history
  • Loading branch information
carlokok committed Apr 23, 2012
1 parent 5b2a626 commit c8bd875
Show file tree
Hide file tree
Showing 306 changed files with 51,203 additions and 4 deletions.
5 changes: 1 addition & 4 deletions README.md
@@ -1,4 +1 @@
internetpack
============

Internet Pack
RemObjects Internet Pack
Binary file added Samples/C#/FTP Sync/App.ico
Binary file not shown.
26 changes: 26 additions & 0 deletions Samples/C#/FTP Sync/AssemblyInfo.cs
@@ -0,0 +1,26 @@
/*---------------------------------------------------------------------------
RemObjects Internet Pack for .NET - Samples
(c)opyright RemObjects Software, Inc. 2003-2004. All rights reserved.
Using this code requires a valid license of the RemObjects Internet Pack
which can be obtained at http://www.remobjects.com?ip.
---------------------------------------------------------------------------*/

using System;
using System.Reflection;
using System.Runtime.CompilerServices;

[assembly: AssemblyTitle("RemObjects Internet Pack for .NET - HttpFResponses Sample")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("RemObjects Software")]
[assembly: AssemblyProduct("RemObjects Internet Pack for .NET")]
[assembly: AssemblyCopyright("Copyright RemObjects Software 2003-2004. All Rights Reserved.")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: AssemblyVersion("1.0.15.541")]
[assembly: CLSCompliant(true)]
#if REMOBJECTS_SIGN_ASSEMBLY
[assembly: AssemblyKeyName("RemObjectsSoftware")]
#endif
108 changes: 108 additions & 0 deletions Samples/C#/FTP Sync/FtpSync.2008.csproj
@@ -0,0 +1,108 @@
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
<PropertyGroup>
<ProjectType>Local</ProjectType>
<ProductVersion>8.0.50727</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{F95BF882-461F-4072-90C4-979893E0CD59}</ProjectGuid>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ApplicationIcon>App.ico</ApplicationIcon>
<AssemblyKeyContainerName>
</AssemblyKeyContainerName>
<AssemblyName>FtpSync</AssemblyName>
<AssemblyOriginatorKeyFile>
</AssemblyOriginatorKeyFile>
<DefaultClientScript>JScript</DefaultClientScript>
<DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
<DefaultTargetSchema>IE50</DefaultTargetSchema>
<DelaySign>false</DelaySign>
<OutputType>Exe</OutputType>
<RootNamespace>FtpSync</RootNamespace>
<RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
<StartupObject>
</StartupObject>
<FileUpgradeFlags>
</FileUpgradeFlags>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<OldToolsVersion>2.0</OldToolsVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<OutputPath>bin\Debug\</OutputPath>
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
<BaseAddress>285212672</BaseAddress>
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
<ConfigurationOverrideFile>
</ConfigurationOverrideFile>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DocumentationFile>
</DocumentationFile>
<DebugSymbols>true</DebugSymbols>
<FileAlignment>4096</FileAlignment>
<NoStdLib>false</NoStdLib>
<NoWarn>
</NoWarn>
<Optimize>false</Optimize>
<RegisterForComInterop>false</RegisterForComInterop>
<RemoveIntegerChecks>false</RemoveIntegerChecks>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<WarningLevel>4</WarningLevel>
<DebugType>full</DebugType>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<OutputPath>..\..\Bin\</OutputPath>
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
<BaseAddress>285212672</BaseAddress>
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
<ConfigurationOverrideFile>
</ConfigurationOverrideFile>
<DefineConstants>TRACE;REMOBJECTS_SIGN_ASSEMBLY</DefineConstants>
<DocumentationFile>
</DocumentationFile>
<DebugSymbols>false</DebugSymbols>
<FileAlignment>4096</FileAlignment>
<NoStdLib>false</NoStdLib>
<NoWarn>
</NoWarn>
<Optimize>true</Optimize>
<RegisterForComInterop>false</RegisterForComInterop>
<RemoveIntegerChecks>false</RemoveIntegerChecks>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<WarningLevel>4</WarningLevel>
<DebugType>none</DebugType>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<ItemGroup>
<Reference Include="RemObjects.InternetPack">
</Reference>
<Reference Include="System">
<Name>System</Name>
</Reference>
<Reference Include="System.Data">
<Name>System.Data</Name>
</Reference>
<Reference Include="System.Xml">
<Name>System.XML</Name>
</Reference>
</ItemGroup>
<ItemGroup>
<Content Include="App.ico" />
<Compile Include="AssemblyInfo.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="FtpSyncMain.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="FtpSyncWorker.cs">
<SubType>Code</SubType>
</Compile>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PreBuildEvent>
</PreBuildEvent>
<PostBuildEvent>
</PostBuildEvent>
</PropertyGroup>
</Project>
20 changes: 20 additions & 0 deletions Samples/C#/FTP Sync/FtpSync.2008.sln
@@ -0,0 +1,20 @@

Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FtpSync", "FtpSync.2008.csproj", "{F95BF882-461F-4072-90C4-979893E0CD59}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{F95BF882-461F-4072-90C4-979893E0CD59}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F95BF882-461F-4072-90C4-979893E0CD59}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F95BF882-461F-4072-90C4-979893E0CD59}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F95BF882-461F-4072-90C4-979893E0CD59}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
111 changes: 111 additions & 0 deletions Samples/C#/FTP Sync/FtpSync.2010.csproj
@@ -0,0 +1,111 @@
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<PropertyGroup>
<ProjectType>Local</ProjectType>
<ProductVersion>10.0.20506</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{F95BF882-461F-4072-90C4-979893E0CD59}</ProjectGuid>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ApplicationIcon>App.ico</ApplicationIcon>
<AssemblyKeyContainerName>
</AssemblyKeyContainerName>
<AssemblyName>FtpSync</AssemblyName>
<AssemblyOriginatorKeyFile>
</AssemblyOriginatorKeyFile>
<DefaultClientScript>JScript</DefaultClientScript>
<DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
<DefaultTargetSchema>IE50</DefaultTargetSchema>
<DelaySign>false</DelaySign>
<OutputType>Exe</OutputType>
<RootNamespace>FtpSync</RootNamespace>
<RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
<StartupObject>
</StartupObject>
<FileUpgradeFlags>
</FileUpgradeFlags>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<OldToolsVersion>3.5</OldToolsVersion>
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<OutputPath>bin\Debug\</OutputPath>
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
<BaseAddress>285212672</BaseAddress>
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
<ConfigurationOverrideFile>
</ConfigurationOverrideFile>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DocumentationFile>
</DocumentationFile>
<DebugSymbols>true</DebugSymbols>
<FileAlignment>4096</FileAlignment>
<NoStdLib>false</NoStdLib>
<NoWarn>
</NoWarn>
<Optimize>false</Optimize>
<RegisterForComInterop>false</RegisterForComInterop>
<RemoveIntegerChecks>false</RemoveIntegerChecks>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<WarningLevel>4</WarningLevel>
<DebugType>full</DebugType>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<OutputPath>..\..\Bin\</OutputPath>
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
<BaseAddress>285212672</BaseAddress>
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
<ConfigurationOverrideFile>
</ConfigurationOverrideFile>
<DefineConstants>TRACE;REMOBJECTS_SIGN_ASSEMBLY</DefineConstants>
<DocumentationFile>
</DocumentationFile>
<DebugSymbols>false</DebugSymbols>
<FileAlignment>4096</FileAlignment>
<NoStdLib>false</NoStdLib>
<NoWarn>
</NoWarn>
<Optimize>true</Optimize>
<RegisterForComInterop>false</RegisterForComInterop>
<RemoveIntegerChecks>false</RemoveIntegerChecks>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<WarningLevel>4</WarningLevel>
<DebugType>none</DebugType>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
<Reference Include="RemObjects.InternetPack">
</Reference>
<Reference Include="System">
<Name>System</Name>
</Reference>
<Reference Include="System.Data">
<Name>System.Data</Name>
</Reference>
<Reference Include="System.Xml">
<Name>System.XML</Name>
</Reference>
</ItemGroup>
<ItemGroup>
<Content Include="App.ico" />
<Compile Include="AssemblyInfo.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="FtpSyncMain.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="FtpSyncWorker.cs">
<SubType>Code</SubType>
</Compile>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PreBuildEvent>
</PreBuildEvent>
<PostBuildEvent>
</PostBuildEvent>
</PropertyGroup>
</Project>
20 changes: 20 additions & 0 deletions Samples/C#/FTP Sync/FtpSync.2010.sln
@@ -0,0 +1,20 @@

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2008
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FtpSync", "FtpSync.2010.csproj", "{F95BF882-461F-4072-90C4-979893E0CD59}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{F95BF882-461F-4072-90C4-979893E0CD59}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F95BF882-461F-4072-90C4-979893E0CD59}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F95BF882-461F-4072-90C4-979893E0CD59}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F95BF882-461F-4072-90C4-979893E0CD59}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
57 changes: 57 additions & 0 deletions Samples/C#/FTP Sync/FtpSync.Sample.html
@@ -0,0 +1,57 @@
<html>
<head>
<link rel="stylesheet" type="text/css" href="../../styles.css"/>
</head>
<body>
<img src="../../../ip.png" alt="" align="right"/>

<!-------------------------------------------------------------------------->
<br>
<p class="h1">
<span>FtpSync Sample</span>
</p>

<br>
<h2>Purpose</h2>
<p>
This sample shows how to use the <b>FtpClient</b> class to gain access to an ftp
site and download files from there.<br/>
The
FtpSync application compares files on the local computer against those on the ftp folder and downloads files that are new or have changed.<br/>

FtpSync is a console application with following uasge:</p>
<p>
<br/>

<b>FtpSync localdir user:pass@server/remotedir [-local] [-remote] [-nodelete] [-passive] [-l] [-r]</b></p>
<p>
<b></b>
<br/>
<i>
where:<br/>


<table border=0>
<tr><td>localdir</td><td>:</td><td>local directory - long file names with spaces should be quoted</td></tr>
<tr><td>user/pass</td><td>:</td><td>ftp username & password</td></tr>
<tr><td>server</td><td>:</td><td>ftp server (i.e., ftp.whatever.com)</td></tr>
<tr><td>remotedir</td><td>:</td><td>directory on the remote server</td></tr>
<tr><td>-nodelete</td><td>:</td><td>forbid to delete missing files</td></tr>
<tr><td>-passive</td><td>:</td><td>turn on 'Passive' mode</td></tr>
<tr><td>-r</td><td>:</td><td>recursive synchronization (through subdirectories)</td></tr>
<tr><td>-l</td><td>:</td><td>log - show FTP commands</td></tr>
<tr><td>-local</td><td>:</td><td>Local mode of sync (Master = ftp; slave = localhost). By default</td></tr>
<tr><td>-remote</td><td>:</td><td>Remote mode of sync (Master = localhost; slave = ftp)</td></tr>
</table>
</i>
</p>


<h2>Getting started</h2>
<ul>
<li>Build the application.</li>
<li>Run the application with your parameters. Try to synchronize your local folder with an ftp folder</li>
</ul>

</body>
</html>
26 changes: 26 additions & 0 deletions Samples/C#/FTP Sync/FtpSyncMain.cs
@@ -0,0 +1,26 @@
using System;
using System.IO;

namespace FtpSync
{
/// <summary>
/// Summary description for Class1.
/// </summary>
class FtpSyncMain
{

/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main(string[] args)
{
FtpSyncWorker lWorker = new FtpSyncWorker();

if (lWorker.CheckArgs(args))
{
lWorker.Sync();
}
}
}
}

0 comments on commit c8bd875

Please sign in to comment.