aboutsummaryrefslogtreecommitdiff
path: root/src/serversocket.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2007-05-17 05:56:26 +0000
committerMike Buland <eichlan@xagasoft.com>2007-05-17 05:56:26 +0000
commite0e7932a122614a0ff566fbfd8de5776de8b9f6d (patch)
treeae87ab46b677bfd05f340051a56f1edbc94862a9 /src/serversocket.cpp
parentdda94f3b53e02e117e6eb5758afa1410e1664c9f (diff)
downloadlibbu++-e0e7932a122614a0ff566fbfd8de5776de8b9f6d.tar.gz
libbu++-e0e7932a122614a0ff566fbfd8de5776de8b9f6d.tar.bz2
libbu++-e0e7932a122614a0ff566fbfd8de5776de8b9f6d.tar.xz
libbu++-e0e7932a122614a0ff566fbfd8de5776de8b9f6d.zip
Lots of cool new stuff, the Server class actually works for everything except
actually interacting with clients, and the Client class is almost there, except that it doesn't really do anything yet.
Diffstat (limited to 'src/serversocket.cpp')
-rw-r--r--src/serversocket.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/serversocket.cpp b/src/serversocket.cpp
index c53c80d..9c8f743 100644
--- a/src/serversocket.cpp
+++ b/src/serversocket.cpp
@@ -85,6 +85,11 @@ void Bu::ServerSocket::startServer( struct sockaddr_in &name, int nPoolSize )
85 FD_SET( nServer, &fdActive ); 85 FD_SET( nServer, &fdActive );
86} 86}
87 87
88int Bu::ServerSocket::getSocket()
89{
90 return nServer;
91}
92
88int Bu::ServerSocket::accept( int nTimeoutSec, int nTimeoutUSec ) 93int Bu::ServerSocket::accept( int nTimeoutSec, int nTimeoutUSec )
89{ 94{
90 fd_set fdRead = fdActive; 95 fd_set fdRead = fdActive;