Fix: socket pointers passing in server