add thread file ,and add tcp/udp test mode