57 lines
1.1 KiB
C++
57 lines
1.1 KiB
C++
//
|
|
// TCP Daemon
|
|
//
|
|
|
|
/* prevent multiple inclusions */
|
|
#ifndef __UdpArchdaemon__
|
|
#define __UdpArchdaemon__
|
|
|
|
/* includes *****************************************************************/
|
|
|
|
#include "UdpDaemon.h"
|
|
#include "UdpThread.h"
|
|
|
|
/* defines ******************************************************************/
|
|
|
|
/* macros *******************************************************************/
|
|
|
|
/* structs & typedefs *******************************************************/
|
|
|
|
/* c class definitions ******************************************************/
|
|
|
|
class UdpArchdaemon : public UdpDaemon {
|
|
// public data
|
|
public:
|
|
|
|
// protected data
|
|
protected:
|
|
|
|
// private data
|
|
private:
|
|
|
|
// static data
|
|
|
|
// public methods
|
|
public:
|
|
// constructors
|
|
UdpArchdaemon();
|
|
|
|
// destructor
|
|
virtual ~UdpArchdaemon();
|
|
|
|
// 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 UdpThread *ClientThread( void **parg ) {return NULL;};
|
|
|
|
// static methods
|
|
|
|
// private methods
|
|
private:
|
|
};
|
|
|
|
#endif
|