Fix voor xinetd problemen?

This commit is contained in:
Thulinma 2010-11-04 22:08:33 +01:00
parent 309f727f62
commit ceeef9b29e
4 changed files with 4 additions and 6 deletions

View file

@ -15,9 +15,8 @@ int main() {
mySocket.connect(input);
char buffer[500000];
int msg;
while(true) {
while(std::cout.good()) {
msg = mySocket.recv(&buffer[0],10000);
if (!std::cout.good()) {exit(0);}
std::cout.write(buffer,msg);
}
// disconnect