version 1.3, 2001/04/09 15:26:03
|
version 1.4, 2001/04/11 20:40:57
|
Line 35 boolean dispatch_init (void)
|
Line 35 boolean dispatch_init (void)
|
|
|
/* Dispatch work to the modules as needed. |
/* Dispatch work to the modules as needed. |
* Mainly, check a few internal conditions (buffer space, |
* Mainly, check a few internal conditions (buffer space, |
* data availability), check the corresponding file with |
* data availability), check the corresponding files with |
* poll for readiness, then do something at the appropriate |
* poll for readiness, then do something at the appropriate |
* points to push data forward. |
* points to push data forward. |
* Data is pushed thru the multiplexer unidirectionally: |
* Data is pushed thru the multiplexer unidirectionally: |
Line 68 void dispatch (void)
|
Line 68 void dispatch (void)
|
&& (!force_quit)) { |
&& (!force_quit)) { |
infds = nfds; |
infds = nfds; |
bi = input_acceptable (&nfds, &ufds[infds], &tmo, output_acceptable ()); |
bi = input_acceptable (&nfds, &ufds[infds], &tmo, output_acceptable ()); |
if (bs) { |
if ((bs) |
|
|| ((st != NULL) && output_acceptable ())) { |
tmo = 0; |
tmo = 0; |
} |
} |
warn (LDEB,"Poll",EDIS,0,1,tmo); |
warn (LDEB,"Poll",EDIS,0,1,tmo); |