Copied+Pasted example code on networking

Will expand later but I'm at a reasonable stopping point.