Thanks goes to Beej for his network guide, and to Erwin Andreasen for a ton of useful codebits, all taken from his homepage. Erwins Homepage is located at www.andreason.org