// Copyright (c) 2001 David Muse // See the file COPYING for more information #include #include #ifdef RUDIMENTS_NAMESPACE using namespace rudiments; #endif int main(int argc, const char **argv) { inetserversocket svr; svr.listen(NULL,10000,15); for (;;) { svr.waitForNonBlockingRead(-1,-1); filedescriptor *clientsock=svr.accept(); clientsock->write((unsigned short)11000); clientsock->close(); delete clientsock; } }