Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pydtnsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
discus
pydtnsim
Commits
02e407d9
Commit
02e407d9
authored
7 years ago
by
Jarrod Pas
Browse files
Options
Downloads
Patches
Plain Diff
Add source back to Node.recv
parent
67620e8c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!3
Version 0.2
,
!2
Document examples
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pydtn/__init__.py
+2
-1
2 additions, 1 deletion
pydtn/__init__.py
with
2 additions
and
1 deletion
pydtn/__init__.py
+
2
−
1
View file @
02e407d9
...
...
@@ -423,12 +423,13 @@ class Node:
"""
Call when a packet expires.
"""
self
.
buffer
.
remove
(
packet
)
def
recv
(
self
,
packet
):
def
recv
(
self
,
packet
,
source
=
None
):
"""
Recieve a packet.
If the packet has reached it
'
s destination notes the time then
"""
# pylint: disable=unused-argument
if
packet
.
destination
is
self
:
return
...
...
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