Skip to content

Commit b29024a

Browse files
ADD: Network Delay
1 parent 80665e4 commit b29024a

File tree

9 files changed

+1170
-0
lines changed

9 files changed

+1170
-0
lines changed

Network/Network_Delay/Readme.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Network delay
2+
3+
This tools simulates a delayed network. This is usefull if you want to simulate a WAN connection on your local computer.
4+
5+
![](preview.png)
6+
7+
Features:
8+
- Delay network packets
9+
- TCP-IP only
10+
11+
12+
### How to use:
13+
- start the application
14+
- define listening port and start listen
15+
- set delay value
16+
- connect to the target using ip and port settings
17+

Network/Network_Delay/preview.png

26 KB
Loading

Network/Network_Delay/project1.lpi

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<CONFIG>
3+
<ProjectOptions>
4+
<Version Value="12"/>
5+
<PathDelim Value="\"/>
6+
<General>
7+
<Flags>
8+
<CompatibilityMode Value="True"/>
9+
</Flags>
10+
<SessionStorage Value="InProjectDir"/>
11+
<Title Value="project1"/>
12+
<ResourceType Value="res"/>
13+
<UseXPManifest Value="True"/>
14+
<Icon Value="0"/>
15+
</General>
16+
<i18n>
17+
<EnableI18N LFM="False"/>
18+
</i18n>
19+
<BuildModes Count="1">
20+
<Item1 Name="Default" Default="True"/>
21+
</BuildModes>
22+
<PublishOptions>
23+
<Version Value="2"/>
24+
</PublishOptions>
25+
<RunParams>
26+
<FormatVersion Value="2"/>
27+
<Modes Count="1">
28+
<Mode0 Name="default"/>
29+
</Modes>
30+
</RunParams>
31+
<RequiredPackages Count="3">
32+
<Item1>
33+
<PackageName Value="FCL"/>
34+
</Item1>
35+
<Item2>
36+
<PackageName Value="lnetvisual"/>
37+
</Item2>
38+
<Item3>
39+
<PackageName Value="LCL"/>
40+
</Item3>
41+
</RequiredPackages>
42+
<Units Count="3">
43+
<Unit0>
44+
<Filename Value="project1.lpr"/>
45+
<IsPartOfProject Value="True"/>
46+
</Unit0>
47+
<Unit1>
48+
<Filename Value="unit1.pas"/>
49+
<IsPartOfProject Value="True"/>
50+
<ComponentName Value="Form1"/>
51+
<HasResources Value="True"/>
52+
<ResourceBaseClass Value="Form"/>
53+
<UnitName Value="Unit1"/>
54+
</Unit1>
55+
<Unit2>
56+
<Filename Value="..\..\DatenSteuerung\ufifo.pas"/>
57+
<IsPartOfProject Value="True"/>
58+
</Unit2>
59+
</Units>
60+
</ProjectOptions>
61+
<CompilerOptions>
62+
<Version Value="11"/>
63+
<PathDelim Value="\"/>
64+
<Target>
65+
<Filename Value="network_delay"/>
66+
</Target>
67+
<SearchPaths>
68+
<IncludeFiles Value="$(ProjOutDir)"/>
69+
<OtherUnitFiles Value="..\..\DatenSteuerung"/>
70+
<UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)"/>
71+
</SearchPaths>
72+
<Linking>
73+
<Options>
74+
<Win32>
75+
<GraphicApplication Value="True"/>
76+
</Win32>
77+
</Options>
78+
</Linking>
79+
</CompilerOptions>
80+
<Debugging>
81+
<Exceptions Count="3">
82+
<Item1>
83+
<Name Value="EAbort"/>
84+
</Item1>
85+
<Item2>
86+
<Name Value="ECodetoolError"/>
87+
</Item2>
88+
<Item3>
89+
<Name Value="EFOpenError"/>
90+
</Item3>
91+
</Exceptions>
92+
</Debugging>
93+
</CONFIG>

Network/Network_Delay/project1.lpr

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
(******************************************************************************)
2+
(* *)
3+
(* Author : Uwe Schächterle (Corpsman) *)
4+
(* *)
5+
(* This file is part of Network delay *)
6+
(* *)
7+
(* See the file license.md, located under: *)
8+
(* https://github.com/PascalCorpsman/Software_Licenses/blob/main/license.md *)
9+
(* for details about the license. *)
10+
(* *)
11+
(* It is not allowed to change or remove this text from any *)
12+
(* source file of the project. *)
13+
(* *)
14+
(******************************************************************************)
15+
Program project1;
16+
17+
{$MODE objfpc}{$H+}
18+
19+
Uses
20+
{$IFDEF UNIX}{$IFDEF UseCThreads}
21+
cthreads,
22+
{$ENDIF}{$ENDIF}
23+
Interfaces, // this includes the LCL widgetset
24+
Forms, Unit1, lnetvisual
25+
{ you can add units after this };
26+
27+
{$R *.res}
28+
29+
Begin
30+
RequireDerivedFormResource := True;
31+
Application.Initialize;
32+
Application.CreateForm(TForm1, Form1);
33+
Application.Run;
34+
End.
35+

0 commit comments

Comments
 (0)