From ec05778d5718a7912e506764d443a78d6a6179e3 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 5 Nov 2012 22:41:51 +0000 Subject: Converted tabs to spaces with tabconv. --- src/stable/tcpserversocket.h | 66 ++++++++++++++++++++++---------------------- 1 file changed, 33 insertions(+), 33 deletions(-) (limited to 'src/stable/tcpserversocket.h') diff --git a/src/stable/tcpserversocket.h b/src/stable/tcpserversocket.h index 9776668..fd1d547 100644 --- a/src/stable/tcpserversocket.h +++ b/src/stable/tcpserversocket.h @@ -20,46 +20,46 @@ namespace Bu { - subExceptionDecl( TcpServerSocketException ); + subExceptionDecl( TcpServerSocketException ); - /** - * A single tcp/ip server socket. When created the server socket will bind - * to the specified interface and port, and immediately begin listening for - * connections. When connections come in they are pooled by the networking - * drivers in the kernel until they are accepted, this means that failure - * to keep space in the connection pool will result in connection refusals. - * - * Although the accept function returns an integral file descriptor, it is - * designed to be used with the Socket class. - * - *@ingroup Serving - */ - class TcpServerSocket - { - public: + /** + * A single tcp/ip server socket. When created the server socket will bind + * to the specified interface and port, and immediately begin listening for + * connections. When connections come in they are pooled by the networking + * drivers in the kernel until they are accepted, this means that failure + * to keep space in the connection pool will result in connection refusals. + * + * Although the accept function returns an integral file descriptor, it is + * designed to be used with the Socket class. + * + *@ingroup Serving + */ + class TcpServerSocket + { + public: #ifdef WIN32 - typedef unsigned int socket_t; + typedef unsigned int socket_t; #else - typedef int socket_t; + typedef int socket_t; #endif - TcpServerSocket( int nPort, int nPoolSize=40 ); - TcpServerSocket( const String &sAddr, int nPort, int nPoolSize=40 ); - TcpServerSocket( socket_t nSocket, bool bInit, int nPoolSize=40 ); - TcpServerSocket( const TcpServerSocket &rSrc ); - virtual ~TcpServerSocket(); + TcpServerSocket( int nPort, int nPoolSize=40 ); + TcpServerSocket( const String &sAddr, int nPort, int nPoolSize=40 ); + TcpServerSocket( socket_t nSocket, bool bInit, int nPoolSize=40 ); + TcpServerSocket( const TcpServerSocket &rSrc ); + virtual ~TcpServerSocket(); - int accept( int nTimeoutSec=0, int nTimeoutUSec=0 ); - int getSocket(); - int getPort(); + int accept( int nTimeoutSec=0, int nTimeoutUSec=0 ); + int getSocket(); + int getPort(); - private: - void startServer( struct sockaddr_in &name, int nPoolSize ); - void initServer( struct sockaddr_in &name, int nPoolSize ); + private: + void startServer( struct sockaddr_in &name, int nPoolSize ); + void initServer( struct sockaddr_in &name, int nPoolSize ); - fd_set fdActive; - socket_t nServer; - int nPort; - }; + fd_set fdActive; + socket_t nServer; + int nPort; + }; } #endif -- cgit v1.2.3