tls_client.h
来自「这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用」· C头文件 代码 · 共 64 行
H
64 行
/* -*- C++ -*- */
// ============================================================================
/**
* @file TLS_Client.h
*
* TLS_Client.h,v 1.3 2002/10/04 12:02:45 dhanvey Exp
*
* An example of using the Basic_Logging_Service
*
*
*
* @author D A Hanvey (d.hanvey@qub.ac.uk)
*/
// ============================================================================
#ifndef TLS_CLIENT_H
#define TLS_CLIENT_H
#include "orbsvcs/DsLogAdminC.h"
#include "orbsvcs/CosNamingC.h"
class TLS_Client
{
// = TITLE
// Telecom Log Service Client
// = DESCRIPTION
// This client demonstates how to use the log service.
public:
// = Initialization and Termination
TLS_Client (void);
~TLS_Client ();
void init (int argc, char *argv [] ACE_ENV_ARG_DECL);
// Init the Client.
void run_tests (ACE_ENV_SINGLE_ARG_DECL);
// Run the tests..
protected:
void init_ORB (int argc, char *argv [] ACE_ENV_ARG_DECL);
// Initializes the ORB.
void resolve_naming_service (ACE_ENV_SINGLE_ARG_DECL);
// Try to get hold of a running naming service.
void resolve_TLS_Basic_factory (ACE_ENV_SINGLE_ARG_DECL);
// Try to resolve the TLS factory from the Naming service.
// = Data Members
CORBA::ORB_var orb_;
// The ORB that we use.
CosNaming::NamingContext_var naming_context_;
// Handle to the name service.
DsLogAdmin::BasicLogFactory_var basic_log_factory_;
// The basic log factory from the Log Service.
};
#endif /* TLS_CLIENT_H */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?