From 0e3611464ba1a9c37d759ed8f8f16059e7424283 Mon Sep 17 00:00:00 2001 From: Kurt Van Dijck Date: Tue, 23 Feb 2016 11:01:38 +0100 Subject: [PATCH] use -w option for transport protocol examples --- can-j1939-kickstart.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/can-j1939-kickstart.md b/can-j1939-kickstart.md index 1ec184a..7ea75ff 100644 --- a/can-j1939-kickstart.md +++ b/can-j1939-kickstart.md @@ -148,6 +148,20 @@ do not fit into single CAN packets. ./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: 18ECFF80#20140003FF002301