⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 htbp_id_requestor.h

📁 ace开发环境 用来开发网络程序 其运用了设计模式、多平台、C++等多种知识
💻 H
字号:
// -*- C++ -*-// $Id: HTBP_ID_Requestor.h 69669 2005-11-27 12:11:35Z ossama $#ifndef HTID_REQUESTOR_H#define HTID_REQUESTOR_H#include /**/ "ace/pre.h"#include "HTBP_Export.h"#include "ace/SString.h"#include "ace/Synch.h"#if !defined (ACE_LACKS_PRAGMA_ONCE)# pragma once#endif /* ACE_LACKS_PRAGMA_ONCE */ACE_BEGIN_VERSIONED_NAMESPACE_DECL// Forward declarationsclass ACE_SOCK_Stream;namespace ACE{  namespace HTBP  {    // Forward declarations    class Environment;    /**     * ACE_HTBP_ID_Requestor     *     * @brief This singleton class is to be used to get a HTID     */    class HTBP_Export ID_Requestor    {    public:      /// Constructor.      ID_Requestor (Environment * = 0);      /// Accessor to HTID      ACE_TCHAR *get_HTID ();    private:      /// Connects to the remote host      int connect_to_server (ACE_SOCK_Stream *cli_stream);      /// Send HTTP GET request to the server.      int send_request (ACE_SOCK_Stream *cli_stream);      unsigned port_;      ACE_TString host_;      ACE_TString url_;      static ACE_TString htid_;      static ACE_SYNCH_MUTEX htid_lock_;    };  }}ACE_END_VERSIONED_NAMESPACE_DECL#include /**/ "ace/post.h"#endif /* HTID_REQUESTOR_H */

⌨️ 快捷键说明

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