common library functions used by the UCL multicast utils.
