started replicating packet stuff from RIP

need some way to communicate with the controller - sockets seem a good
way to do it since they're already built in