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