Networking code to help with tcp/ip protocols and generating HTML