Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authoreutarass2011-06-03 21:05:49 -0400
committereutarass2011-06-03 21:05:49 -0400
commitcad9f08c15c6ca56b74d98b6e291cfafecbd5815 (patch)
tree53bee3abaf00d965f798258554ba6403c915c7bf /docs
parentfae8eeff08bde9128e4e3379db67a34e3c9dbfc8 (diff)
downloadorg.eclipse.tcf-cad9f08c15c6ca56b74d98b6e291cfafecbd5815.tar.gz
org.eclipse.tcf-cad9f08c15c6ca56b74d98b6e291cfafecbd5815.tar.xz
org.eclipse.tcf-cad9f08c15c6ca56b74d98b6e291cfafecbd5815.zip
Bug 331819 - Peers not removed when Channels are reset.
Diffstat (limited to 'docs')
-rw-r--r--docs/TCF_UDP_Discovery.html25
1 files changed, 22 insertions, 3 deletions
diff --git a/docs/TCF_UDP_Discovery.html b/docs/TCF_UDP_Discovery.html
index 931592e36..f8ab338fb 100644
--- a/docs/TCF_UDP_Discovery.html
+++ b/docs/TCF_UDP_Discovery.html
@@ -16,7 +16,7 @@ Designed by Eugene Tarassov (eugene.tarassov@windriver.com)<br>
Documented by John Cortell (john.cortell@freescale.com)<br>
<br>
Created on: December 5, 2009<br>
-Last modified on: June 24, 2010<br>
+Last modified on: June 03, 2011<br>
<h3>Overview</h3>
@@ -139,12 +139,14 @@ The following are the TCF UDP Discovey <i>Rules of Engagement. </i>Unless explic
<li>
tell the new slave about all known peers and slaves
</li>
- </ul>
- <ul>
<li>
advertise the new slave to all slaves that have sent CONF_REQ_SLAVES to this agent within the last X seconds (retention period)
</li>
</ul>
+ <li>
+ <p>
+ On shutdown, agent may broadcast CONF_PEERS_REMOVED to all local networks and known slaves.
+ </li>
</ol>
<h3>UDP Packets</h3>
@@ -174,6 +176,9 @@ All TCF discovery UDP packets have an eight byte header:
<li>
4 = CONF_SLAVES_INFO<br>
</li>
+ <li>
+ 5 = CONF_PEERS_REMOVED<br>
+ </li>
</ul>
<li>
bytes 5-7 are reserved for future use<br>
@@ -218,6 +223,12 @@ This indicates knowledge of a TCF slave agent running at 192.168.0.1, listening
<br>
Multiple such descriptions can appear in a CONF_SLAVES_INFO packet. Agents should take care to not send excessively large UDP packets, though.
The TCF reference implementation keeps packets under 1500 bytes. Agents should split large tables across multiple UDP packets.
+<dt>
+CONF_PEERS_REMOVED
+<dd>
+This is a packet which notifies removal of peers. When an agent is about to exit, it may send the packet to notify others about removing of peers that the agent implements.
+This allows other agents to remove stale peer info right away instead of waiting until the data become expired. Following the eight-byte header, this packet contains
+sequence of zero-terminated peer IDs.
</dd>
<h3>Timing</h3>
@@ -308,6 +319,14 @@ An agent should check and ignore any packets it has sent.
UDP_REQ_SLAVES
</td>
</tr>
+ <tr>
+ <td width=50%>
+ CONF_PEERS_REMOVED
+ </td>
+ <td width=50%>
+ UDP_PEERS_REMOVED
+ </td>
+ </tr>
</tbody>
</table>

Back to the top