add UDP and TCP protocol
modif function name