亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? http_handler.h

?? 一個開源的網絡開發庫ACE
?? H
字號:
/* -*- c++ -*- */
// Hey, Emacs!  This is a C++ file!
// HTTP_Handler.h,v 1.15 1998/10/20 02:34:33 levine Exp

// ============================================================================
//
// = LIBRARY
//    jaws
//
// = FILENAME
//    HTTP_Handler.h
//
// = AUTHOR
//    James Hu and Irfan Pyarali
//
// ============================================================================

#ifndef HTTP_HANDLER_H
#define HTTP_HANDLER_H

// = Forward declarations
class Message_Block;
class HTTP_Handler_Factory;

#include "ace/Asynch_IO.h"

#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */

#include "HTTP_Request.h"
#include "HTTP_Response.h"
#include "IO.h"

class HTTP_Handler : protected JAWS_IO_Handler
  // = TITLE
  //
  //     This class is used to implement the HTTP protocol
  //
  // = DESCRIPTION
  //
  //     The HTTP_Handler class is a state based implementation of the
  //     HTTP protocol. Therefore, it can be used synchronously and
  //     asynchronously. It uses an abstract IO class to move between
  //     different HTTP protocol states. It is up to the IO class to
  //     decide on synchronous or asynchronous I/O.
{
  // Friend I/O classes. Can call protected methods.
  friend class JAWS_Synch_IO;
  friend class JAWS_Asynch_IO;

  // Factories
  friend class Asynch_HTTP_Handler_Factory;
  friend class Synch_HTTP_Handler_Factory;

public:
  virtual void open (ACE_HANDLE handle,
                     ACE_Message_Block &initial_data);
  // The handler is initialized with a connection <handle> of a new
  // client and any <initial_data> that came across. The
  // <initial_data> block will be of MAX_REQUEST_SIZE and the number
  // of bytes in <initial_data> can be found from
  // <initial_data>.length ()

protected:
  HTTP_Handler (JAWS_IO &io,
                HTTP_Handler_Factory &factory);
  // The constructor is passed the factory that created <this> and the
  // IO mechanism that the handler should use.

  virtual ~HTTP_Handler (void);
  // Destructor

  virtual void timeout (void);
  // This method is called by the framework when there is a timeout.

  virtual void done (void);
  // This is the termination state of the handler. After successful or
  // unsuccessful completions, the handler will end up in this state
  // (method).

  virtual void request_too_long (void);
  // Request too long.

  HTTP_Handler_Factory &factory_;
  // Reference to the creating factory.

protected:
  // = Completion methods inherited from <JAWS_IO_Handler>.

  virtual void read_complete (ACE_Message_Block &data);
  virtual void read_error (void);
  virtual void transmit_file_complete (void);
  virtual void transmit_file_error (int result);
  virtual void receive_file_complete (void);
  virtual void receive_file_error (int result);
  virtual void write_error (void);
  virtual void confirmation_message_complete (void);
  virtual void error_message_complete (void);

public:
  enum
  {
    MAX_SOCKBUFSIZE = 64 * 1024,
    MAX_REQUEST_SIZE = 8192,
    METHODSIZ = 10,
    VERSIONSIZ = 10
  };

private:
  ACE_Message_Block *request_data_;
  // This points to the request sent by the client

  ACE_HANDLE handle_;
  // I/O handle to the client

  HTTP_Request request_;
  HTTP_Response response_;

  JAWS_IO &io_;
  // IO class used by the handler
};

class HTTP_Handler_Factory
  // = TITLE
  //
  //     This class is used to create new HTTP handlers
  //
  // = DESCRIPTION
  //
  //     This is an abstract factory for creating new HTTP handlers.
{
public:
  virtual ~HTTP_Handler_Factory (void);
  // Destructor

  virtual HTTP_Handler *create_http_handler (void) = 0;
  // This creates a new HTTP_Handler

  virtual void destroy_http_handler (HTTP_Handler &handler,
                                     JAWS_IO &io) = 0;
  // The HTTP handler will call this method from HTTP_Handler::done to
  // tell the factory to reap up the handler as it is now done with
  // the protocol
};

class Synch_HTTP_Handler_Factory : public HTTP_Handler_Factory
  // = TITLE
  //
  //     This class is used to create new HTTP handlers that will use
  //     Synch IO
  //
  // = DESCRIPTION
{
public:
  HTTP_Handler *create_http_handler (void);
  // This creates a new HTTP_Handler

  void destroy_http_handler (HTTP_Handler &handler,
                             JAWS_IO &io);
  // The HTTP handler will call this method from HTTP_Handler::done to
  // tell the factory to reap up the handler as it is now done with
  // the protocol
};

#if defined (ACE_WIN32)
class Asynch_HTTP_Handler_Factory : public HTTP_Handler_Factory, public ACE_Service_Handler
  // = TITLE
  //     This class is used to create new HTTP handlers that will use
  //     Asynchronous IO.  This only works on Win32.
  //
  // = DESCRIPTION
{
public:
  void destroy_http_handler (HTTP_Handler &handler,
                             JAWS_IO &io);
  // The HTTP handler will call this method from HTTP_Handler::done to
  // tell the factory to reap up the handler as it is now done with
  // the protocol

  virtual void open (ACE_HANDLE handle,
                     ACE_Message_Block &message_block);
  // <open> is called by <ACE_Asynch_Acceptor> to initialize a new
  // instance of ACE_Service_Handler that has been created after the a
  // new connection is accepted.
  //
  // This will act as a creation point for new handlers.

private:
  HTTP_Handler *create_http_handler (void);
  // This method is private as users are not allowed to create new
  // handlers. New handlers can only be created by the framework when
  // new client connections arrive.
};
#endif /* ACE_WIN32 */
#endif /* HTTP_HANDLER_H */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本午夜精品一区二区三区电影| 国产精品三级av| 日日摸夜夜添夜夜添精品视频| 91久久精品午夜一区二区| 亚洲人123区| 欧美日韩视频一区二区| 日韩av电影一区| 精品国产网站在线观看| 国产91精品久久久久久久网曝门| 国产日产欧产精品推荐色| 国产精品88888| 中文子幕无线码一区tr| 色婷婷国产精品久久包臀| 偷拍亚洲欧洲综合| 8v天堂国产在线一区二区| 激情五月播播久久久精品| 久久先锋影音av| 91首页免费视频| 视频一区在线播放| 欧美v日韩v国产v| 成人国产精品免费网站| 亚洲二区在线视频| 亚洲精品在线一区二区| 成人黄色av网站在线| 午夜国产精品一区| 精品999久久久| 色婷婷综合激情| 精品在线一区二区三区| 国产精品白丝在线| 69堂成人精品免费视频| 国产福利一区在线| 五月婷婷综合在线| 国产精品人成在线观看免费 | 91亚洲国产成人精品一区二区三| 亚洲图片自拍偷拍| 久久久另类综合| 欧美日韩一区在线| 国产成人综合亚洲网站| 亚洲国产视频一区| 久久久久国产精品人| 欧美人牲a欧美精品| 国产激情一区二区三区四区| 亚洲一区二区三区三| 久久久亚洲国产美女国产盗摄 | 午夜视频一区二区三区| 国产午夜精品理论片a级大结局| 日本乱人伦aⅴ精品| 国产尤物一区二区| 日韩精品一二三| 亚洲男女一区二区三区| 26uuu国产电影一区二区| 欧美性猛交xxxx黑人交| 91在线国产福利| 国产激情91久久精品导航| 天天综合网天天综合色| 亚洲欧洲成人自拍| 久久久久久97三级| 日韩欧美黄色影院| 91精品国产乱| 欧美四级电影网| 色综合久久99| youjizz国产精品| 国产精品亚洲午夜一区二区三区 | 免费人成在线不卡| 亚洲午夜国产一区99re久久| 欧美激情一区在线观看| 欧美精品一区二区精品网| 欧美精品高清视频| 色婷婷久久久亚洲一区二区三区| 懂色av一区二区三区蜜臀| 国内精品久久久久影院一蜜桃| 日本伊人精品一区二区三区观看方式| 亚洲黄色av一区| 一区二区三区四区在线| 综合精品久久久| 亚洲免费看黄网站| 亚洲色图视频网| 国产精品国产三级国产aⅴ原创| 国产婷婷色一区二区三区四区| 欧美成人综合网站| 精品88久久久久88久久久| 精品国产电影一区二区| 日韩免费观看2025年上映的电影| 91精品国产乱| 欧美成人精品高清在线播放| 欧美成人一区二区三区片免费 | 一区二区三区在线观看国产| 一区二区三区资源| 一二三四社区欧美黄| 亚洲午夜精品久久久久久久久| 五月综合激情日本mⅴ| 免费久久99精品国产| 精品写真视频在线观看| 91福利视频在线| 色婷婷精品大视频在线蜜桃视频| 99国产欧美另类久久久精品| 91色乱码一区二区三区| 91美女片黄在线观看| 欧美性高清videossexo| 欧美久久一二三四区| 日韩欧美的一区| 国产视频一区二区在线观看| 国产精品久久久99| 亚洲一级二级三级在线免费观看| 日本中文字幕一区二区视频| 精品一二三四在线| 成人av免费在线观看| 欧美三级欧美一级| 欧美精品一区二区三区在线| 欧美激情一区在线| 亚洲国产精品久久艾草纯爱| 美女脱光内衣内裤视频久久网站| 激情综合色综合久久综合| www.日韩大片| 欧美日高清视频| 久久久99精品免费观看不卡| 国产精品二区一区二区aⅴ污介绍| 综合分类小说区另类春色亚洲小说欧美| 亚洲高清免费观看高清完整版在线观看| 久久精品国产在热久久| 成人av资源在线| 欧美亚日韩国产aⅴ精品中极品| 欧美成人性战久久| 亚洲美女电影在线| 美女www一区二区| 99riav久久精品riav| 欧美浪妇xxxx高跟鞋交| 国产精品三级电影| 蜜臀av亚洲一区中文字幕| 97久久久精品综合88久久| 欧美一级艳片视频免费观看| 成人免费视频在线观看| 久久99久久99| 91成人在线精品| 亚洲国产精品99久久久久久久久| 亚洲第一在线综合网站| 国产福利一区在线| 日韩免费视频一区二区| 亚洲免费三区一区二区| 成人在线视频一区| 日韩午夜精品视频| 一区二区三区在线视频观看| 成人免费高清在线观看| 欧美一区二区网站| 亚洲一区二区免费视频| www.综合网.com| 国产日产精品1区| 国产一区二区女| 欧美一级日韩不卡播放免费| 亚洲一区二区精品视频| 99麻豆久久久国产精品免费| 精品成人在线观看| 久久成人免费日本黄色| 欧美三级在线播放| 一区二区三区影院| 91视视频在线直接观看在线看网页在线看| 精品国产麻豆免费人成网站| 日韩电影免费在线看| 欧美日韩综合在线| 一区二区三区欧美激情| 91麻豆高清视频| 国产精品成人在线观看| 成人精品鲁一区一区二区| 久久先锋资源网| 国产呦精品一区二区三区网站| 欧美一区二区三区在线电影 | 黄色资源网久久资源365| 欧美一级一区二区| 另类专区欧美蜜桃臀第一页| 3d动漫精品啪啪| 亚洲国产aⅴ天堂久久| 欧美日韩三级一区二区| 视频在线观看一区| 88在线观看91蜜桃国自产| 五月激情丁香一区二区三区| 欧美日本免费一区二区三区| 午夜精品在线视频一区| 欧美一级理论片| 极品尤物av久久免费看| 亚洲精品在线免费播放| 国产在线观看免费一区| 国产日韩精品一区二区三区在线| 国产精品亚洲成人| 国产精品免费人成网站| 色欧美88888久久久久久影院| 一区二区三区在线视频观看| 欧美理论电影在线| 美日韩一区二区| 国产欧美日韩视频在线观看| 国产成人综合精品三级| 亚洲女子a中天字幕| 在线成人高清不卡| 国内精品嫩模私拍在线| 亚洲欧洲日产国产综合网| 欧美日韩久久久一区| 久久疯狂做爰流白浆xx| 国产精品午夜春色av| 欧美日本一区二区在线观看| 国产在线不卡视频| 一色桃子久久精品亚洲|