connection_handler_acceptor.h

来自「ace开发环境 用来开发网络程序 其运用了设计模式、多平台、C++等多种知识」· C头文件 代码 · 共 66 行

H
66
字号
/* -*- C++ -*- */// $Id: Connection_Handler_Acceptor.h 16777 1998-10-20 02:34:57Z levine $// ============================================================================//// = LIBRARY//    gateway//// = FILENAME//    Connection_Handler_acceptor.h//// = AUTHOR//    Doug Schmidt//// ============================================================================#ifndef _CONNECTION_HANDLER_ACCEPTOR#define _CONNECTION_HANDLER_ACCEPTOR#include "ace/Acceptor.h"#if !defined (ACE_LACKS_PRAGMA_ONCE)# pragma once#endif /* ACE_LACKS_PRAGMA_ONCE */#include "ace/SOCK_Acceptor.h"#include "Connection_Handler.h"// Forward declarationclass Event_Channel;class Connection_Handler_Acceptor : public ACE_Acceptor<Connection_Handler, ACE_SOCK_ACCEPTOR>{  // = TITLE  //     A concrete factory class that setups connections to peerds  //     and produces a new Connection_Handler object to do the dirty  //     work...public:  Connection_Handler_Acceptor (Event_Channel &,                               char connection_role);  // Constructor.  virtual int make_svc_handler (Connection_Handler *&ch);  // Hook method for creating an appropriate <Connection_Handler>.  virtual int accept_svc_handler (Connection_Handler *ch);  // Hook method for accepting a connection into the  // <Connection_Handler>.protected:  typedef ACE_Acceptor<Connection_Handler, ACE_SOCK_ACCEPTOR>          inherited;  // Make life easier later on.  Event_Channel &event_channel_;  // Reference to the event channel.  Connection_Config_Info connection_config_info_;  // Keeps track of what type of proxy we need to create.  Connection_Handler_Factory connection_handler_factory_;  // Make the appropriate type of <Connection_Handler>.};#endif /* _CONNECTION_HANDLER_ACCEPTOR */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?