Displaying 1 result from an estimated 1 matches for "network_ev".
Did you mean:
network_dev
2018 Feb 27
2
tinc 1.1: missing PONG
...A_WAIT_TIMEOUT) {
- continue;
- }
+ if(io->fd == -1) {
+ io->cb(io->data, 0);
- if(result < WSA_WAIT_EVENT_0 || result >= WSA_WAIT_EVENT_0 + event_count) {
- return false;
- }
+ if(curgen != io_tree.generation) {
+ break;
+ }
+ } else {
+ WSANETWORKEVENTS network_events;
- io_t *io = splay_search(&io_tree, &((io_t) {
- .event = event
- }));
+ if(WSAEnumNetworkEvents(io->fd, io->event, &network_events) != 0) {
+ return(false);
+ }
- if(!io) {
- abort();
- }
+ if(network_events.lNetworkEvents & READ_EVENTS) {
+...