Initial commit of files
This commit is contained in:
52
include/libnet++/TcpDaemon.h
Normal file
52
include/libnet++/TcpDaemon.h
Normal file
@ -0,0 +1,52 @@
|
||||
//
|
||||
// TCP Daemon
|
||||
//
|
||||
|
||||
/* prevent multiple inclusions */
|
||||
#ifndef __TcpDaemon__
|
||||
#define __TcpDaemon__
|
||||
|
||||
/* includes *****************************************************************/
|
||||
|
||||
#include "Daemon.h"
|
||||
#include "TcpServer.h"
|
||||
|
||||
/* defines ******************************************************************/
|
||||
|
||||
/* macros *******************************************************************/
|
||||
|
||||
/* structs & typedefs *******************************************************/
|
||||
|
||||
/* c class definitions ******************************************************/
|
||||
|
||||
class TcpDaemon : public TcpServer, public Daemon {
|
||||
// public data
|
||||
public:
|
||||
|
||||
// protected data
|
||||
protected:
|
||||
|
||||
// private data
|
||||
private:
|
||||
|
||||
// static data
|
||||
|
||||
// public methods
|
||||
public:
|
||||
// constructors
|
||||
TcpDaemon();
|
||||
|
||||
// destructor
|
||||
virtual ~TcpDaemon();
|
||||
|
||||
// public methods
|
||||
int StartService(const char *n,const char *h,const char *p,int d=0,int c=0);
|
||||
int RunService(void);
|
||||
|
||||
// static methods
|
||||
|
||||
// private methods
|
||||
private:
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user