Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
discus
pydtnsim
Commits
02e407d9
Commit
02e407d9
authored
Aug 16, 2017
by
Jarrod Pas
Browse files
Add source back to Node.recv
parent
67620e8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
pydtn/__init__.py
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
...
...
Write
Preview
Supports
Markdown
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