use -w option for transport protocol examples

pull/66/head
Kurt Van Dijck 2016-02-23 11:01:38 +01:00
parent 1ffa9a16a4
commit 0e3611464b
1 changed files with 14 additions and 0 deletions

View File

@ -148,6 +148,20 @@ do not fit into single CAN packets.
./testj1939 -s20 can0:0x80 :,0x12300 ./testj1939 -s20 can0:0x80 :,0x12300
emits:
18ECFF80#20140003FF002301
This is the first fragment for broadcasted *Transport Protocol*.
_testj1939_ returns before the subsequent packets can leave, and
as the last socket on the system closes, can-j1939 effectively
cleans up all resources. Real-world applications will run like forever,
and will not encounter this side-effect.
Try again, and instruct _testj1939_ to keep the socket open for 1 second.
./testj1939 -w1.0 -s20 can0:0x80 :,0x12300
emits: emits:
18ECFF80#20140003FF002301 18ECFF80#20140003FF002301