changing socket structure in server