diff options
author | Mike Buland <eichlan@xagasoft.com> | 2009-03-26 17:00:35 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2009-03-26 17:00:35 +0000 |
commit | b4ab27db8a97f0a56a61bd56480cfbe08a1f3399 (patch) | |
tree | 83c984b68f10099deac2e9536227a96cc416e39b /src/serversocket.h | |
parent | 94fff060ee9ec6c2a8da75568702d8e944963d46 (diff) | |
download | libbu++-b4ab27db8a97f0a56a61bd56480cfbe08a1f3399.tar.gz libbu++-b4ab27db8a97f0a56a61bd56480cfbe08a1f3399.tar.bz2 libbu++-b4ab27db8a97f0a56a61bd56480cfbe08a1f3399.tar.xz libbu++-b4ab27db8a97f0a56a61bd56480cfbe08a1f3399.zip |
Added some more constructors to the ServerSocket, and also switched the write
function in Bu::Formatter to take a void *, what was I thinking?
Diffstat (limited to 'src/serversocket.h')
-rw-r--r-- | src/serversocket.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/serversocket.h b/src/serversocket.h index 0860972..88d09ec 100644 --- a/src/serversocket.h +++ b/src/serversocket.h | |||
@@ -39,6 +39,8 @@ namespace Bu | |||
39 | public: | 39 | public: |
40 | ServerSocket( int nPort, int nPoolSize=40 ); | 40 | ServerSocket( int nPort, int nPoolSize=40 ); |
41 | ServerSocket( const FString &sAddr, int nPort, int nPoolSize=40 ); | 41 | ServerSocket( const FString &sAddr, int nPort, int nPoolSize=40 ); |
42 | ServerSocket( int nSocket, bool bInit, int nPoolSize=40 ); | ||
43 | ServerSocket( const ServerSocket &rSrc ); | ||
42 | virtual ~ServerSocket(); | 44 | virtual ~ServerSocket(); |
43 | 45 | ||
44 | int accept( int nTimeoutSec=0, int nTimeoutUSec=0 ); | 46 | int accept( int nTimeoutSec=0, int nTimeoutUSec=0 ); |
@@ -47,6 +49,7 @@ namespace Bu | |||
47 | 49 | ||
48 | private: | 50 | private: |
49 | void startServer( struct sockaddr_in &name, int nPoolSize ); | 51 | void startServer( struct sockaddr_in &name, int nPoolSize ); |
52 | void initServer( struct sockaddr_in &name, int nPoolSize ); | ||
50 | 53 | ||
51 | fd_set fdActive; | 54 | fd_set fdActive; |
52 | #ifdef WIN32 | 55 | #ifdef WIN32 |