X-Git-Url: https://hackdaworld.org/gitweb/?p=my-code%2Fivac.git;a=blobdiff_plain;f=src%2Fivac.c;h=23d59b19cd498ec8ecd603cfe716c261b15e84f6;hp=9645c33f59444e0e74b66b9b85814c61e657cf9f;hb=9c1916712be5882b728b5e54e6716272ce0678a5;hpb=5cefb7a043dc08801cb98524f129b8fc4df6ed6c diff --git a/src/ivac.c b/src/ivac.c index 9645c33..23d59b1 100644 --- a/src/ivac.c +++ b/src/ivac.c @@ -183,11 +183,16 @@ int ivac_event_cb(t_event *event,void *ptr) { } } - /* receive info */ - for(channel=0;channelnet.connection[channel].status&C_ESTABL) + for(channel=0;channelnet.connection[channel].status&C_ESTABL) { + /* receive info */ if(FD_ISSET(ivac->net.connection[channel].fd,&(event->rfds))) ivac_receive_info(channel,ivac); + /* sync network/event api */ + if(!(FD_ISSET(ivac->net.connection[channel].fd,&(event->rfds_o)))) + event_math(ivac->net.connection[channel].fd,event,READ,ADD); + } + } /* user interaction */ if(FD_ISSET(0,&(event->rfds)))