signalhand.h
#include "ace/Basic_Types.h"
#include "ace/Signal.h"
/*************************************************
Class: CSignalHandlerImpl
Description: 信号量处理类实现
*************************************************/
class CSignalHandler : public ACE_Event_Handler
{
public:
CSignalHandler();
virtual ~CSignalHandler();
public:
ACE_INT32 Init();//初始化
ACE_INT32 Exit();
public:
virtual ACE_INT32 handle_signal (ACE_INT32 signum, siginfo_t * = 0, ucontext_t * = 0); //实现这个回调函数
private:
ACE_Sig_Action no_sigpipe;
};