It's a very simple process and BAM! takes care of it all.
It does not take care of it all, it loops doing so.
acct_mgr_request.xml:
<project>
<url>https://www.worldcommunitygrid.org/</url>
<project_name>World Community Grid</project_name>
<suspended_via_gui>0</suspended_via_gui>
<account_key>12d1581cc43ebc66e64989c947e03f25</account_key>
<hostid>1573994</hostid>
<not_started_dur>0.000000</not_started_dur>
<in_progress_dur>56696.686941</in_progress_dur>
<attached_via_acct_mgr>1</attached_via_acct_mgr>
<dont_request_more_work>1</dont_request_more_work>
<detach_when_done>1</detach_when_done>
<ended>0</ended>
<resource_share>10000.000000</resource_share>
</project>
acct_mgr_reply.xml:
<?xml version="1.0" encoding="UTF-8"?>
<acct_mgr_reply>
<name>BOINCstatsBAM!</name>
<version>2.3.0</version>
<server>www1</server>
<signing_key>
1024
a37e94351f82c504850ad9e958592360253ea948b49e56fd85bb4d936adb4dfc
259ecd0b37294af37b29a2464e491f7e4b572e24d1bbe29773697a973f32d539
5b676e57937da09b885f7c291bf7b4c1c3c24e417eaaf4f8e824700afcb07b96
26ca0bbb11cb7348698cfaca65ef660365331adc3772a9fef01ae264b109f005
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000010001
.
</signing_key>
<message><![CDATA[BAM! User: 117974, Dirk Broer]]></message>
<message>BAM! Host: 617815</message>
<message>Number of BAM! connections for this host: 196</message>
<account>
<url>https://www.worldcommunitygrid.org/</url>
<url_signature>
377f44585ce8904e8686444dc784f04e43c9b718b7bd6caaf7039eb3292da330
9fd0315da6b33a18c24bc80bac602ed66bcc7333ad77c6945d4ccdd6056070ef
843840ce307dfb53dca22e83ba03e215b957c484285601e034918286d5f02ba1
309071b3ae3f8b71f38e73297213f4b6d1c5ac4bc724443782a8c52533260af0
.
</url_signature>
<dont_request_more_work>1</dont_request_more_work>
<detach_when_done>1</detach_when_done>
</account>
<message>Delayed detach from World Community Grid, project changed URL.
After detaching project will reattach with new URL on next communication!</message>
<repeat_sec>86400</repeat_sec>
<host_venue/>
<opaque>
<host_authenticator>0e23fda0dec3e308126c8862dcfd180e</host_authenticator>
</opaque>
</acct_mgr_reply>