add tcp and udp sock