Add socket program in poll way