diff options
| author | Rat <none@none> | 2010-06-07 19:10:55 +0200 | 
|---|---|---|
| committer | Rat <none@none> | 2010-06-07 19:10:55 +0200 | 
| commit | 32546e22828e793e3881e1055acb72b6a044e331 (patch) | |
| tree | 759706cdfe8423887c69a2f8ed651c0c1e5ab7d7 /externals/ace/SSL/SSL_SOCK.h | |
| parent | 2e0f8fb6e558088b33bdee83bc5ff20014e983b3 (diff) | |
added ace + vcproj for win
--HG--
branch : trunk
Diffstat (limited to 'externals/ace/SSL/SSL_SOCK.h')
| -rw-r--r-- | externals/ace/SSL/SSL_SOCK.h | 103 | 
1 files changed, 103 insertions, 0 deletions
| diff --git a/externals/ace/SSL/SSL_SOCK.h b/externals/ace/SSL/SSL_SOCK.h new file mode 100644 index 00000000000..c07a4ecfda3 --- /dev/null +++ b/externals/ace/SSL/SSL_SOCK.h @@ -0,0 +1,103 @@ +// -*- C++ -*- + +//============================================================================= +/** + *  @file    SSL_SOCK.h + * + *  $Id: SSL_SOCK.h 80826 2008-03-04 14:51:23Z wotte $ + * + *  @author Ossama Othman <ossama@ece.uci.edu> + */ +//============================================================================= + + +#ifndef ACE_SSL_SOCK_H +#define ACE_SSL_SOCK_H + +#include /**/ "ace/pre.h" + +#include "SSL_Export.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +#include "ace/SOCK.h" + +#if defined (ACE_HAS_TEMPLATE_TYPEDEFS) +# define ACE_SSL_SOCK_ACCEPTOR ACE_SSL_SOCK_Acceptor +# define ACE_SSL_SOCK_CONNECTOR ACE_SSL_SOCK_Connector +# define ACE_SSL_SOCK_STREAM ACE_SSL_SOCK_Stream +#else +# define ACE_SSL_SOCK_ACCEPTOR ACE_SSL_SOCK_Acceptor, ACE_INET_Addr +# define ACE_SSL_SOCK_CONNECTOR ACE_SSL_SOCK_Connector, ACE_INET_Addr +# define ACE_SSL_SOCK_STREAM ACE_SSL_SOCK_Stream, ACE_INET_Addr +#endif /* ACE_HAS_TEMPLATE_TYPEDEFS */ + +ACE_BEGIN_VERSIONED_NAMESPACE_DECL + +/** + * @class ACE_SSL_SOCK + * + * @brief An abstract class that forms the basis for more specific + * classes, such as "ACE_SSL_SOCK_Acceptor" and + * "ACE_SSL_SOCK_Stream".  Do not instantiate this class. + * + * This class provides functions that are common to all of the + * ACE_SSL_SOCK_* classes.  ACE_SSL_SOCK provides the ability + * to get and set socket options, get the local and remote + * addresses, and close the socket. + */ +class ACE_SSL_Export ACE_SSL_SOCK : public ACE_SOCK +{ +public: + +  /** +   * Override ACE_SOCK base class implementations with these SSL +   * specific ones. +   */ +  //@{ +  int set_option (int level, +                  int option, +                  void *optval, +                  int optlen) const; +  int get_option (int level, +                  int option, +                  void *optval, +                  int *optlen) const; +  int enable (int value) const; +  int disable (int value) const; +  void set_handle (ACE_HANDLE); +  ACE_HANDLE get_handle (void) const; +  int control (int cmd, void *arg) const; +  //@} + +protected: + +  /// Default constructor is private to prevent instances of this class +  /// from being defined. +  ACE_SSL_SOCK (void); + +  /// Destructor +  /** +   * Not a virtual destructor.  Protected destructor to prevent +   * operator delete() from being called through a base class +   * ACE_SSL_SOCK pointer/reference. +   */ +  ~ACE_SSL_SOCK (void); + +}; + +ACE_END_VERSIONED_NAMESPACE_DECL + +#if defined (__ACE_INLINE__) +#include "SSL_SOCK.inl" +#endif /* __ACE_INLINE__ */ + +#include /**/ "ace/post.h" + +#endif /* ACE_SSL_SOCK_H */ + + + + | 
