modify socket program