Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
D0020E-projekt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Henrik Tjäder
D0020E-projekt
Commits
87eda440
Commit
87eda440
authored
10 years ago
by
Henrik Tjäder
Browse files
Options
Downloads
Patches
Plain Diff
Prefer IPv4
parent
200fc7bb
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
UDP-client-server.py
+4
-4
4 additions, 4 deletions
UDP-client-server.py
UDP-reflector.py
+2
-2
2 additions, 2 deletions
UDP-reflector.py
with
6 additions
and
6 deletions
UDP-client-server.py
+
4
−
4
View file @
87eda440
...
@@ -7,16 +7,16 @@ from array import *
...
@@ -7,16 +7,16 @@ from array import *
#DEFINE INPUTS HERE
#DEFINE INPUTS HERE
#CLIENT - SENDER
#CLIENT - SENDER
UDP_DEST_IP
=
'
::1
'
# IP ADDRESS TO SEND DATAGRAMS TO (v4 or v6)
#
UDP_DEST_IP = '::1' # IP ADDRESS TO SEND DATAGRAMS TO (v4 or v6)
#
UDP_DEST_IP = '0.0.0.0' # IP ADDRESS TO SEND DATAGRAMS TO (v4 or v6)
UDP_DEST_IP
=
'
0.0.0.0
'
# IP ADDRESS TO SEND DATAGRAMS TO (v4 or v6)
UDP_DEST_PORT
=
15005
# IP PORT TO SEND DATAGRAMS TO
UDP_DEST_PORT
=
15005
# IP PORT TO SEND DATAGRAMS TO
PACKET_SIZE
=
200
# DATAGRAM SIZE IN BYTES
PACKET_SIZE
=
200
# DATAGRAM SIZE IN BYTES
NR_OF_PACKETS
=
100
# TOTAL NR. OF PACKETS TO SEND
NR_OF_PACKETS
=
100
# TOTAL NR. OF PACKETS TO SEND
PACKETS_PER_SEC
=
100
# PACKETS PER SECOND
PACKETS_PER_SEC
=
100
# PACKETS PER SECOND
# CLIENT - RECEIVER
# CLIENT - RECEIVER
UDP_RECEIVE_IP
=
'
::1
'
# LISTENING IP ADDRESS (v6)
#
UDP_RECEIVE_IP = '::1' # LISTENING IP ADDRESS (v6)
#
UDP_RECEIVE_IP = '0.0.0.0' # LISTENING IP ADDRESS (v4)
UDP_RECEIVE_IP
=
'
0.0.0.0
'
# LISTENING IP ADDRESS (v4)
UDP_RECEIVE_PORT
=
55555
# IP PORT TO LISTEN FOR INCOMING PACKETS
UDP_RECEIVE_PORT
=
55555
# IP PORT TO LISTEN FOR INCOMING PACKETS
BUFFER
=
4096
BUFFER
=
4096
...
...
This diff is collapsed.
Click to expand it.
UDP-reflector.py
100644 → 100755
+
2
−
2
View file @
87eda440
...
@@ -3,8 +3,8 @@ import time
...
@@ -3,8 +3,8 @@ import time
#import sys
#import sys
#DEFINE INPUTS HERE
#DEFINE INPUTS HERE
REFLECTOR_HOST
=
'
::1
'
# IP ADDRESS FOR LISTENING (v6)
#
REFLECTOR_HOST = '::1' # IP ADDRESS FOR LISTENING (v6)
#
REFLECTOR_HOST = '0.0.0.0' # IP ADDRESS FOR LISTENING (v4)
REFLECTOR_HOST
=
'
0.0.0.0
'
# IP ADDRESS FOR LISTENING (v4)
REFLECTOR_PORT
=
15005
# IP PORT TO LISTEN TO
REFLECTOR_PORT
=
15005
# IP PORT TO LISTEN TO
REMOTE_PORT
=
55555
# REMOTE PORT TO REFLECT PACKETS TO
REMOTE_PORT
=
55555
# REMOTE PORT TO REFLECT PACKETS TO
REFLECT_SWITCH
=
1
# REFLECTION ENABLED:1 (TWO-WAY DELAY),
REFLECT_SWITCH
=
1
# REFLECTION ENABLED:1 (TWO-WAY DELAY),
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment