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