hi Stéphane, I read codes moring, and I think I catch the idea, if you permit I will modify the code a little to fit in my program. thanks for help.:) Wang Wei -------------- next part -------------- An HTML attachment was scrubbed... URL: </pipermail/twisted-python/attachments/20060710/07c29620/attachment.html>