func NewRegisterOp(name, serviceType string, port int, f RegisterCallbackFunc) *RegisterOp {
	op := &RegisterOp{}
	op.SetName(name)
	op.SetType(serviceType)
	op.SetPort(port)
	op.SetCallback(f)
	return op
}
NewRegisterOp creates a new RegisterOp with the given parameters set.
package dnssd
import (
	"os"
	"unsafe"
)
type RegisterCallbackFunc func(op *RegisterOp, err error, add bool, name, serviceType, domain string)
type RegisterOp struct {
	baseOp
	name   string
	stype  string
	domain string
	host   string
	port   int
	txt    struct {
		l int
		m map[string]string
	}
	callback RegisterCallbackFunc
	seenAdd  bool
}