Sorry forgot the URL. http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/286201 It's long because there's a demo chat app in there... Matthew Sherborne Sherborne International Ltd www.sherborneinternational.com