Started on rewriting cmdgw so that new sockets can be created. Peers need to be allocated too. Definitely not working.