framework planning for some net stuff

psuedo-code with tons of comments