mirror of
https://gitlab.com/manzerbredes/esds.git
synced 2025-04-19 12:09:44 +00:00
Debug synchronization + add return code
This commit is contained in:
parent
57f020e09d
commit
cfa677a0c6
21 changed files with 107 additions and 71 deletions
|
@ -2,7 +2,7 @@
|
|||
[t=1.000,src=n1] Receive 1 bytes on eth0
|
||||
[t=1.000,src=n1] Received: Hello World!
|
||||
[t=1.000,src=n0] Send 1 bytes to n1 on eth0
|
||||
[t=1.500,src=n1] Receive failed code=-1
|
||||
[t=1.500,src=n1] Receive failed code=RCode.TIMEOUT_EXPIRE
|
||||
[t=2.000,src=n1] Receive 1 bytes on eth0
|
||||
[t=2.000,src=n1] Received: Hello World!
|
||||
[t=2.000,src=esds] Simulation ends
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
#!/usr/bin/env python
|
||||
from esds import RCode
|
||||
|
||||
def receivet(node,timeout):
|
||||
##### Simple receive
|
||||
code, data=node.receivet("eth0",timeout)
|
||||
msg="Received: "+data if code == 0 else "Receive failed code="+str(code)
|
||||
msg="Received: "+data if code == RCode.SUCCESS else "Receive failed code="+str(code)
|
||||
node.log(msg)
|
||||
|
||||
def execute(api):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue