UDP set_type(int sock_type) UDP set_type(int sock_type, int family)
Sets socket type and protocol family.