Esempio n. 1
0
// enet_host_check_event
func (host *Host) CheckEvents() (*Event, error) {
	var c_event C.ENetEvent

	ret := C.enet_host_check_events(host.host, &c_event)

	return host.ret_to_error(&c_event, ret)
}
Esempio n. 2
0
File: host.go Progetto: boj/goenet
func (h *ENetHost) CheckEvents(event *ENetEvent) int {
	return int(C.enet_host_check_events((*C.ENetHost)(h), (*C.ENetEvent)(event)))
}