📄 handle_r_dgram.h
字号:
// -*- C++ -*-
//
// Handle_R_Dgram.h,v 4.7 2002/04/11 02:31:03 ossama Exp
/* Handles INET datagram messages from remote hosts. */
#ifndef _HANDLE_R_DGRAM_H
#define _HANDLE_R_DGRAM_H
#include "ace/Service_Config.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/Service_Types.h"
#include "ace/INET_Addr.h"
#include "ace/SOCK_Dgram.h"
#include "ace/Log_Msg.h"
#include "ace/svc_export.h"
class ACE_Svc_Export Handle_R_Dgram : public ACE_Service_Object, public ACE_SOCK_Dgram
{
public:
Handle_R_Dgram (void);
virtual int init (int argc, char *argv[]);
virtual int info (char **, size_t) const;
virtual int fini (void);
private:
int open (const ACE_INET_Addr &r, int async = 0);
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 u_short DEFAULT_PORT;
};
extern ACE_Service_Object_Type rd;
#if defined (__ACE_INLINE__)
#define ACE_INLINE inline
#include "Handle_R_Dgram.i"
#else
#define ACE_INLINE
#endif /* __ACE_INLINE__ */
#endif /* _HANDLE_R_DGRAM_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -