aboutsummaryrefslogtreecommitdiff
path: root/src/stable
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2012-08-07 17:16:19 +0000
committerMike Buland <eichlan@xagasoft.com>2012-08-07 17:16:19 +0000
commit68efb78a8840b81e7237f62d81831f3fdbed749b (patch)
tree8de2256e0fa6cedc8700921ce819ada1dde28198 /src/stable
parent7d3b21eb3338a6e7425d0f88916694692ebc28c2 (diff)
downloadlibbu++-68efb78a8840b81e7237f62d81831f3fdbed749b.tar.gz
libbu++-68efb78a8840b81e7237f62d81831f3fdbed749b.tar.bz2
libbu++-68efb78a8840b81e7237f62d81831f3fdbed749b.tar.xz
libbu++-68efb78a8840b81e7237f62d81831f3fdbed749b.zip
Adding filesystem access classes, and converting Bu::Server to using ppoll.
I have to test to see if it works with mingw though.
Diffstat (limited to '')
-rw-r--r--src/stable/server.cpp3
1 files changed, 3 insertions, 0 deletions
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 @@
8#include "bu/server.h" 8#include "bu/server.h"
9#include <errno.h> 9#include <errno.h>
10#include <unistd.h> 10#include <unistd.h>
11#include <poll.h>
11#include "bu/tcpserversocket.h" 12#include "bu/tcpserversocket.h"
12#include "bu/client.h" 13#include "bu/client.h"
13#include "bu/tcpsocket.h" 14#include "bu/tcpsocket.h"
@@ -46,6 +47,8 @@ void Bu::Server::setTimeout( int nTimeoutSec, int nTimeoutUSec )
46{ 47{
47 this->nTimeoutSec = nTimeoutSec; 48 this->nTimeoutSec = nTimeoutSec;
48 this->nTimeoutUSec = nTimeoutUSec; 49 this->nTimeoutUSec = nTimeoutUSec;
50// struct timespec xTimeout = { nTimeoutSec, nTimeoutUSec };
51// ppoll( NULL, 0, &xTimeout, NULL );
49} 52}
50 53
51void Bu::Server::scan() 54void Bu::Server::scan()