1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
|
// -*- C++ -*-
//
// $Id: Handle_L_FIFO.h 80826 2008-03-04 14:51:23Z wotte $
/* Handle connections from local UNIX ACE_FIFO */
/* Read from a well known ACE_FIFO and write to stdout. */
#ifndef _HANDLE_L_FIFO_H
#define _HANDLE_L_FIFO_H
#include "ace/Service_Config.h"
#include "ace/Reactor.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/Service_Types.h"
#include "ace/FIFO_Recv_Msg.h"
#include "ace/Log_Msg.h"
#include "ace/svc_export.h"
class ACE_Svc_Export Handle_L_FIFO : public ACE_Service_Object, public ACE_FIFO_Recv_Msg
{
public:
Handle_L_FIFO (void);
virtual int init (int argc, ACE_TCHAR *argv[]);
virtual int info (ACE_TCHAR **, size_t) const;
virtual int fini (void);
private:
int open (const ACE_TCHAR *rendezvous_fifo);
virtual ACE_HANDLE get_handle (void) const;
virtual int handle_input (ACE_HANDLE fd);
virtual int handle_close (ACE_HANDLE fd, ACE_Reactor_Mask);
static const ACE_TCHAR *DEFAULT_RENDEZVOUS;
};
extern ACE_Service_Object_Type lf;
#if defined (__ACE_INLINE__)
#define ACE_INLINE inline
#include "Handle_L_FIFO.inl"
#else
#define ACE_INLINE
#endif /* __ACE_INLINE__ */
#endif /* _HANDLE_L_FIFO_H */
|