func (b *Beacon) Configure(port int) (string, error) {
	cmd := C.CString("CONFIGURE")
	defer C.free(unsafe.Pointer(cmd))

	cPort := C.CString(strconv.Itoa(port))
	defer C.free(unsafe.Pointer(cPort))

	rc := C.zstr_sendm(unsafe.Pointer(b.zactorT), cmd)
	if rc == -1 {
		return "", ErrActorCmd
	}

	rc = C.zstr_send(unsafe.Pointer(b.zactorT), cPort)
	if rc == -1 {
		return "", ErrActorCmd
	}

	cHostname := C.zstr_recv(unsafe.Pointer(b.zactorT))
	hostname := C.GoString(cHostname)

	return hostname, nil
}
// Configure accepts a port number and configures
// the beacon, returning an address
Configure accepts a port number and configures
the beacon, returning an address
// Configure accepts a port number and configures // the beacon returning an address
func (b *Beacon) Configure(port int) (string, error) {
	cmd := C.CString("CONFIGURE")
	defer C.free(unsafe.Pointer(cmd))
	cPort := C.CString(strconv.Itoa(port))
	defer C.free(unsafe.Pointer(cPort))
	rc := C.zstr_sendm(unsafe.Pointer(b.zactorT), cmd)
	if rc == -1 {
		return "", ErrActorCmd
	}
	rc = C.zstr_send(unsafe.Pointer(b.zactorT), cPort)
	if rc == -1 {
		return "", ErrActorCmd
	}
	cHostname := C.zstr_recv(unsafe.Pointer(b.zactorT))
	hostname := C.GoString(cHostname)
	return hostname, nil
}
func ( b * Beacon ) Configure ( port int ) ( string , error ) { cmd := C . CString ( " " ) defer C . free ( unsafe . Pointer ( cmd ) ) cPort := C . CString ( strconv . Itoa ( port ) ) defer C . free ( unsafe . Pointer ( cPort ) ) rc := C . zstr_sendm ( unsafe . Pointer ( b . zactorT ) , cmd ) if rc == - 1 { return " " , ErrActorCmd } rc = C . zstr_send ( unsafe . Pointer ( b . zactorT ) , cPort ) if rc == - 1 { return " " , ErrActorCmd } cHostname := C . zstr_recv ( unsafe . Pointer ( b . zactorT ) ) hostname := C . GoString ( cHostname ) return hostname , nil }
Configure accepts a port number and configures
the beacon, returning an address
Configure accepts a port number and configures the beacon returning an address