Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Pcap-Net
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Pcap-Net
Commits
19014394
Commit
19014394
authored
Jul 24, 2009
by
Brickner_cp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Developer's Pack
parent
dc67cbb4
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
159 additions
and
1 deletion
+159
-1
ObtainingTheDeviceList.csproj
...Pack/ObtainingTheDeviceList/ObtainingTheDeviceList.csproj
+63
-0
ObtainingTheDeviceList.csproj.vspscc
...tainingTheDeviceList/ObtainingTheDeviceList.csproj.vspscc
+10
-0
Program.cs
PcapDotNet.DevelopersPack/ObtainingTheDeviceList/Program.cs
+34
-0
AssemblyInfo.cs
...ersPack/ObtainingTheDeviceList/Properties/AssemblyInfo.cs
+36
-0
PcapDotNet.DevelopersPack.sln
PcapDotNet.DevelopersPack/PcapDotNet.DevelopersPack.sln
+16
-1
No files found.
PcapDotNet.DevelopersPack/ObtainingTheDeviceList/ObtainingTheDeviceList.csproj
0 → 100644
View file @
19014394
<?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>
{58B6F829-2F7C-4ED3-9CEF-DBE55814D31E}
</ProjectGuid>
<OutputType>
Exe
</OutputType>
<AppDesignerFolder>
Properties
</AppDesignerFolder>
<RootNamespace>
ObtainingTheDeviceList
</RootNamespace>
<AssemblyName>
ObtainingTheDeviceList
</AssemblyName>
<TargetFrameworkVersion>
v3.5
</TargetFrameworkVersion>
<FileAlignment>
512
</FileAlignment>
<SccProjectName>
SAK
</SccProjectName>
<SccLocalPath>
SAK
</SccLocalPath>
<SccAuxPath>
SAK
</SccAuxPath>
<SccProvider>
SAK
</SccProvider>
</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>
<Reference
Include=
"System.Xml.Linq"
>
<RequiredTargetFramework>
3.5
</RequiredTargetFramework>
</Reference>
<Reference
Include=
"System.Data.DataSetExtensions"
>
<RequiredTargetFramework>
3.5
</RequiredTargetFramework>
</Reference>
<Reference
Include=
"System.Data"
/>
<Reference
Include=
"System.Xml"
/>
</ItemGroup>
<ItemGroup>
<Compile
Include=
"Program.cs"
/>
<Compile
Include=
"Properties\AssemblyInfo.cs"
/>
</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>
\ No newline at end of file
PcapDotNet.DevelopersPack/ObtainingTheDeviceList/ObtainingTheDeviceList.csproj.vspscc
0 → 100644
View file @
19014394
""
{
"FILE_VERSION" = "9237"
"ENLISTMENT_CHOICE" = "NEVER"
"PROJECT_FILE_RELATIVE_PATH" = ""
"NUMBER_OF_EXCLUDED_FILES" = "0"
"ORIGINAL_PROJECT_FILE_PATH" = ""
"NUMBER_OF_NESTED_PROJECTS" = "0"
"SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER"
}
PcapDotNet.DevelopersPack/ObtainingTheDeviceList/Program.cs
0 → 100644
View file @
19014394
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
namespace
ObtainingTheDeviceList
{
class
Program
{
static
void
Main
(
string
[]
args
)
{
// Retrieve the device list from the local machine
IList
<
LivePacketDevice
>
allDevices
=
LivePacketDevice
.
AllLocalMachine
;
if
(
allDevices
.
Count
==
0
)
{
Console
.
WriteLine
(
"No interfaces found! Make sure WinPcap is installed."
);
return
;
}
// Print the list
for
(
int
i
=
0
;
i
!=
allDevices
.
Count
;
++
i
)
{
LivePacketDevice
device
=
allDevices
[
i
];
Console
.
Write
(
i
+
". "
+
device
.
Name
);
if
(
device
.
Description
!=
null
)
Console
.
WriteLine
(
" ("
+
device
.
Description
+
")"
);
else
Console
.
WriteLine
(
" (No description available)"
);
}
}
}
}
PcapDotNet.DevelopersPack/ObtainingTheDeviceList/Properties/AssemblyInfo.cs
0 → 100644
View file @
19014394
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("ObtainingTheDeviceList")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("ObtainingTheDeviceList")]
[assembly: AssemblyCopyright("Copyright © 2009")]
[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("f5448c70-2aa1-4f54-933d-1d6aedf6c347")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
PcapDotNet.DevelopersPack/PcapDotNet.DevelopersPack.sln
View file @
19014394
Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ObtainingTheDeviceList", "ObtainingTheDeviceList\ObtainingTheDeviceList.csproj", "{58B6F829-2F7C-4ED3-9CEF-DBE55814D31E}"
EndProject
Global
GlobalSection(TeamFoundationVersionControl) = preSolution
SccNumberOfProjects =
1
SccNumberOfProjects =
2
SccEnterpriseProvider = {4CA58AB2-18FA-4F8D-95D4-32DDF27D184C}
SccTeamFoundationServer = https://tfs06.codeplex.com/
SccLocalPath0 = .
SccProjectUniqueName1 = ObtainingTheDeviceList\\ObtainingTheDeviceList.csproj
SccProjectName1 = ObtainingTheDeviceList
SccLocalPath1 = ObtainingTheDeviceList
EndGlobalSection
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{58B6F829-2F7C-4ED3-9CEF-DBE55814D31E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{58B6F829-2F7C-4ED3-9CEF-DBE55814D31E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{58B6F829-2F7C-4ED3-9CEF-DBE55814D31E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{58B6F829-2F7C-4ED3-9CEF-DBE55814D31E}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment