func (b *Beacon) Recv(timeout int) [][]byte {
	C.zsock_set_rcvtimeo(unsafe.Pointer(b.zactorT), C.int(timeout))

	cAddrFrame := C.zframe_recv(unsafe.Pointer(b.zactorT))
	defer C.zframe_destroy(&cAddrFrame)
	if cAddrFrame == nil {
		return nil
	}
	addr := C.GoBytes(unsafe.Pointer(C.zframe_data(cAddrFrame)), C.int(C.zframe_size(cAddrFrame)))

	cBeaconFrame := C.zframe_recv(unsafe.Pointer(b.zactorT))
	defer C.zframe_destroy(&cBeaconFrame)
	if cBeaconFrame == nil {
		return nil
	}
	beacon := C.GoBytes(unsafe.Pointer(C.zframe_data(cBeaconFrame)), C.int(C.zframe_size(cBeaconFrame)))

	return [][]byte{addr, beacon}
}
// Recv waits for the specific timeout in milliseconds to receive a beacon
Recv waits for the specific timeout in milliseconds to receive a beacon
// Recv waits for the specific timeout in milliseconds to receive a beacon
func (b *Beacon) Recv(timeout int) [][]byte {
	C.zsock_set_rcvtimeo(unsafe.Pointer(b.zactorT), C.int(timeout))
	cAddrFrame := C.zframe_recv(unsafe.Pointer(b.zactorT))
	defer C.zframe_destroy(&cAddrFrame)
	if cAddrFrame == nil {
		return nil
	}
	addr := C.GoBytes(unsafe.Pointer(C.zframe_data(cAddrFrame)), C.int(C.zframe_size(cAddrFrame)))
	cBeaconFrame := C.zframe_recv(unsafe.Pointer(b.zactorT))
	defer C.zframe_destroy(&cBeaconFrame)
	if cBeaconFrame == nil {
		return nil
	}
	beacon := C.GoBytes(unsafe.Pointer(C.zframe_data(cBeaconFrame)), C.int(C.zframe_size(cBeaconFrame)))
	return [][]byte{addr, beacon}
}
func ( b * Beacon ) Recv ( timeout int ) [ ] [ ] byte { C . zsock_set_rcvtimeo ( unsafe . Pointer ( b . zactorT ) , C . int ( timeout ) ) cAddrFrame := C . zframe_recv ( unsafe . Pointer ( b . zactorT ) ) defer C . zframe_destroy ( & cAddrFrame ) if cAddrFrame == nil { return nil } addr := C . GoBytes ( unsafe . Pointer ( C . zframe_data ( cAddrFrame ) ) , C . int ( C . zframe_size ( cAddrFrame ) ) ) cBeaconFrame := C . zframe_recv ( unsafe . Pointer ( b . zactorT ) ) defer C . zframe_destroy ( & cBeaconFrame ) if cBeaconFrame == nil { return nil } beacon := C . GoBytes ( unsafe . Pointer ( C . zframe_data ( cBeaconFrame ) ) , C . int ( C . zframe_size ( cBeaconFrame ) ) ) return [ ] [ ] byte { addr , beacon } }
Recv waits for the specific timeout in milliseconds to receive a beacon
Recv waits for the specific timeout in milliseconds to receive a beacon