Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

cabal_ssocket.h

00001 /*
00002    cabal_ssocket.h
00003    Server Socket class definition
00004 
00005    $Id: cabal_ssocket.h,v 1.5 2004/04/10 15:28:16 jonnymind Exp $
00006 ---------------------------------------------
00007    Begin      :
00008    Author     : Giancarlo Niccolai
00009 
00010    Last modified because:
00011 
00012 */
00013 
00014 #ifndef CABAL_SSOCKET_H
00015 #define CABAL_SSOCKET_H
00016 
00017 #include <cabal_tcpsocket.h>
00018 #include <string>
00019 
00020 namespace Cabal {
00021 
00022 
00030 class ServerSocket: public TCPSocket
00031 {
00032 
00033 public:
00034    ServerSocket( const Address &local, int timeout=-1, int incomingMax=0 )
00035          throw( InitError );
00036    
00037    ServerSocket( const char *ip, const int port, int timeout=-1, int incomingMax=0 )
00038          throw( InitError );
00039    
00040    ServerSocket( const std::string &ip, const int port, int timeout=-1, int incomingMax=0 )
00041          throw( InitError );
00042          
00051    TCPSocket *accept();
00052 };
00053 
00054 }
00055 
00056 #endif
00057 
00058 /* end of cabal_ssocket.h */

Generated on Sat Apr 10 17:41:48 2004 for Cabal by doxygen 1.3.5