fixed and cleaned up cnet: async_write may only be called once. implemented a writequeue to do this