In hope to simplify that and make it easier to read for me, are you saying:
You need a socket script that will check for updates on a file(s) that you have, and if the filesize is differant, it will download and rehash without desturbing you?
If that's what you want, that'll be easier to follow, because I can read my answer easier. I'll try to figure out a way to do the above/