Added function foreach to UIPServer class that accepts pointer to function which accepts UIPClient& and returns void.