blob: 2977477fc39ac022479e40eb8366ef649ea940b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
// -*- C++ -*-
//=============================================================================
/**
* @file IIOP_SSL_Acceptor.h
*
* $Id$
*
* SSL-aware IIOP specific acceptor processing
*
* @author Ossama Othman <ossama@uci.edu>
*/
//=============================================================================
#ifndef TAO_IIOP_SSL_ACCEPTOR_H
#define TAO_IIOP_SSL_ACCEPTOR_H
#include "ace/pre.h"
#include "SSLIOP_Export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "IIOP_SSL_Connection_Handler.h"
#include "tao/IIOP_Acceptor.h"
// TAO IIOP_SSL_Acceptor concrete call defination
/**
* @class TAO_IIOP_SSL_Acceptor
*
* @brief An SSL aware IIOP acceptor.
*
* The class differs from the non-SSL aware TAO_IIOP_Acceptor class
* since it uses a different a set of Acceptor strategies. In
* particular, it overrides the open_i() method to use the Acceptor
* strategies tailored to use the SSL aware server connection handler.
* See the TAO_IIOP_SSL_Connection_Handler notes for details.
*/
class TAO_SSLIOP_Export TAO_IIOP_SSL_Acceptor
: public TAO_IIOP_Acceptor
{
public:
typedef ACE_Strategy_Acceptor<TAO_IIOP_SSL_Connection_Handler, ACE_SOCK_ACCEPTOR> TAO_IIOP_SSL_BASE_ACCEPTOR;
typedef TAO_Creation_Strategy<TAO_IIOP_SSL_Connection_Handler> TAO_IIOP_SSL_CREATION_STRATEGY;
typedef TAO_Concurrency_Strategy<TAO_IIOP_SSL_Connection_Handler> TAO_IIOP_SSL_CONCURRENCY_STRATEGY;
typedef TAO_Accept_Strategy<TAO_IIOP_SSL_Connection_Handler, ACE_SOCK_ACCEPTOR> TAO_IIOP_SSL_ACCEPT_STRATEGY;
/// Constructor.
TAO_IIOP_SSL_Acceptor (CORBA::Boolean flag = 0);
/// Destructor.
~TAO_IIOP_SSL_Acceptor (void);
virtual int close (void);
protected:
virtual int open_i (const ACE_INET_Addr &addr,
ACE_Reactor *reactor);
// Implement the common part of the open*() methods. This method is
// virtual to allow a derived class implementation to be invoked
// instead.
private:
/// the concrete acceptor, as a pointer to it's base class.
TAO_IIOP_SSL_BASE_ACCEPTOR base_acceptor_;
/**
* @name Acceptor Strategies
*
* Server side creation, concurrency and accept strategies.
*/
//@{
TAO_IIOP_SSL_CREATION_STRATEGY *creation_strategy_;
TAO_IIOP_SSL_CONCURRENCY_STRATEGY *concurrency_strategy_;
TAO_IIOP_SSL_ACCEPT_STRATEGY *accept_strategy_;
//@}
};
#include "ace/post.h"
#endif /* TAO_IIOP_SSL_ACCEPTOR_H */
|