Adds socket creation for arbitrary domain, type and protocol.