func (eng *Engine) peek() *C.pn_event_t { return C.pn_collector_peek(eng.collector) }
func (eng *Engine) process() { for ce := C.pn_collector_peek(eng.collector); ce != nil; ce = C.pn_collector_peek(eng.collector) { eng.handle(makeEvent(ce, eng)) C.pn_collector_pop(eng.collector) } }