HPCC-12399 Address cleaner socket updates

Added writetms routine for address cleaner

This PR goes together with an LN repo PR

Signed-off-by: Mark Kelly <mark.kelly@lexisnexis.com>