Updated server source, the three threaded functions for accept sender and listen are left as well as the packet