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

📄 ssl-client-simple.h

📁 ace开发环境 用来开发网络程序 其运用了设计模式、多平台、C++等多种知识
💻 H
字号:
// -*- C++ -*-// $Id: SSL-client-simple.h 61403 2004-10-27 21:07:30Z shuston $// This file defines the Options class for SSL-client-simple. IBM C++// compiler's template auto-instantiator needs this in a separate file.#ifndef ACE_SSL_CLIENT_SIMPLE_H#define ACE_SSL_CLIENT_SIMPLE_H#include "ace/SSL/SSL_SOCK_Stream.h"#include "ace/Time_Value.h"class Options  // = TITLE  //   Define the options for this test.{public:  Options (void);  // Constructor.  ~Options (void);  // Destructor.  int parse_args (int argc, ACE_TCHAR *argv[]);  // Parse the command-line arguments.  const ACE_Time_Value &sleep_time (void) const;  // Return the amount of time to sleep in order to implement the  // proper transmission rates.  u_short port (void) const;  // Port of the server.  const ACE_TCHAR *host (void) const;  // Host of the server.  const char *quit_string (void) const;  // String that shuts down the client/server.  ssize_t read (void *buf, size_t len, size_t &iterations);  // Read from the appropriate location.  size_t message_len (void) const;  // Returns the length of the message to send.  const void *message_buf (void) const;  // Returns a pointer to the message.  void run (void);  // Run the testprivate:  int init (void);  // Initialize the message we're sending to the user and set up the  // barrier.  char *shared_client_test (u_short port,                            ACE_SSL_SOCK_Stream &cli_stream);  // Performs the shared behavior of the oneway and twoway client  // tests.  void twoway_client_test (void);  // Performs the twoway test.  void oneway_client_test (void);  // Performs the oneway test.  const ACE_TCHAR *host_;  // Host of the server.  u_short port_;  // Port of the server.  ACE_Time_Value sleep_time_;  // Sleep_Time value.  enum {QUIT_STRING_SIZE = 128};  char quit_string_[QUIT_STRING_SIZE];  // String that shuts down the client/server.  size_t message_len_;  // Size of the message we send to the server.  char *message_buf_;  // Pointer to the message we send to the server.  ACE_HANDLE io_source_;  // Are we reading I/O from ACE_STDIN or from our generator?  size_t iterations_;  // Number of iterations.  char oneway_;  // Are we running oneway or twoway?};#endif /* ACE_SSL_CLIENT_SIMPLE_H */

⌨️ 快捷键说明

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