From 68efb78a8840b81e7237f62d81831f3fdbed749b Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 7 Aug 2012 17:16:19 +0000 Subject: Adding filesystem access classes, and converting Bu::Server to using ppoll. I have to test to see if it works with mingw though. --- src/stable/server.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/stable/server.cpp') diff --git a/src/stable/server.cpp b/src/stable/server.cpp index e4769a5..7d82439 100644 --- a/src/stable/server.cpp +++ b/src/stable/server.cpp @@ -8,6 +8,7 @@ #include "bu/server.h" #include #include +#include #include "bu/tcpserversocket.h" #include "bu/client.h" #include "bu/tcpsocket.h" @@ -46,6 +47,8 @@ void Bu::Server::setTimeout( int nTimeoutSec, int nTimeoutUSec ) { this->nTimeoutSec = nTimeoutSec; this->nTimeoutUSec = nTimeoutUSec; +// struct timespec xTimeout = { nTimeoutSec, nTimeoutUSec }; +// ppoll( NULL, 0, &xTimeout, NULL ); } void Bu::Server::scan() -- cgit v1.2.3