00001 #ifndef __RIPC_SERVER_FACTORY_H__ 00002 #define __RIPC_SERVER_FACTORY_H__ 00003 00004 #include "RIPCFactory.h" 00005 00006 class RIPCServer; 00007 00011 class RIPC_DLL_ENTRY RIPCServerFactory : public RIPCFactory { 00012 public: 00013 static RIPCServerFactory* getInstance() { 00014 return &theFactory; 00015 } 00016 RIPCSession* create(char const* host, int port, int max_attempts=100); 00017 RIPCServerFactory(RIPCServer&); 00018 00019 protected: 00020 RIPCServer& server; 00021 static RIPCServerFactory theFactory; 00022 }; 00023 00024 #endif