139 |
{ |
{ |
140 |
FdSet fdset; |
FdSet fdset; |
141 |
|
|
142 |
// Should these be buildFdSet on the DUM? |
stack.buildFdSet(fdset); |
|
clientDum.buildFdSet(fdset); |
|
143 |
int err = fdset.selectMilliSeconds(100); |
int err = fdset.selectMilliSeconds(100); |
144 |
assert ( err != -1 ); |
assert ( err != -1 ); |
145 |
|
|
146 |
clientDum.process(fdset); |
stack.process(fdset); |
147 |
if (!(n++ % 10)) cerr << "|/-\\"[(n/10)%4] << '\b'; |
while(clientDum.process()); |
148 |
|
|
149 |
|
if (!(n++ % 10)) cerr << "|/-\\"[(n/10)%4] << '\b'; |
150 |
} |
} |
151 |
return 0; |
return 0; |
152 |
} |
} |