Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

SSL_SOCK.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 //=============================================================================
00004 /**
00005  *  @file    SSL_SOCK.h
00006  *
00007  *  $Id: SSL_SOCK.h,v 1.1.1.1 2001/12/04 14:33:14 chad Exp $
00008  *
00009  *  @author Ossama Othman <ossama@ece.uci.edu>
00010  */
00011 //=============================================================================
00012 
00013 
00014 #ifndef ACE_SSL_SOCK_H
00015 #define ACE_SSL_SOCK_H
00016 
00017 #include "ace/pre.h"
00018 
00019 #include "SSL_Export.h"
00020 
00021 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00022 # pragma once
00023 #endif /* ACE_LACKS_PRAGMA_ONCE */
00024 
00025 #include "ace/SOCK.h"
00026 
00027 #if defined (ACE_HAS_TEMPLATE_TYPEDEFS)
00028 # define ACE_SSL_SOCK_ACCEPTOR ACE_SSL_SOCK_Acceptor
00029 # define ACE_SSL_SOCK_CONNECTOR ACE_SSL_SOCK_Connector
00030 # define ACE_SSL_SOCK_STREAM ACE_SSL_SOCK_Stream
00031 #else
00032 # define ACE_SSL_SOCK_ACCEPTOR ACE_SSL_SOCK_Acceptor, ACE_INET_Addr
00033 # define ACE_SSL_SOCK_CONNECTOR ACE_SSL_SOCK_Connector, ACE_INET_Addr
00034 # define ACE_SSL_SOCK_STREAM ACE_SSL_SOCK_Stream, ACE_INET_Addr
00035 #endif /* ACE_HAS_TEMPLATE_TYPEDEFS */
00036 
00037 /**
00038  * @class ACE_SSL_SOCK
00039  *
00040  * @brief An abstract class that forms the basis for more specific
00041  * classes, such as "ACE_SSL_SOCK_Acceptor" and
00042  * "ACE_SSL_SOCK_Stream".  Do not instantiate this class.
00043  *
00044  * This class provides functions that are common to all of the
00045  * ACE_SSL_SOCK_* classes.  ACE_SSL_SOCK provides the ability
00046  * to get and set socket options, get the local and remote
00047  * addresses, and close the socket.
00048  */
00049 class ACE_SSL_Export ACE_SSL_SOCK : public ACE_SOCK
00050 {
00051 public:
00052 
00053   /// Default destructor.
00054   ~ACE_SSL_SOCK (void);
00055 
00056   /**
00057    * Override ACE_SOCK base class implementations with these SSL
00058    * specific ones.
00059    */
00060   //@{
00061   int set_option (int level,
00062                   int option,
00063                   void *optval,
00064                   int optlen) const;
00065   int get_option (int level,
00066                   int option,
00067                   void *optval,
00068                   int *optlen) const;
00069   int enable (int value) const;
00070   int disable (int value) const;
00071   void set_handle (ACE_HANDLE);
00072   ACE_HANDLE get_handle (void) const;
00073   int control (int cmd, void *arg) const;
00074   //@}
00075 
00076 protected:
00077 
00078   /// Default constructor is private to prevent instances of this class
00079   /// from being defined.
00080   ACE_SSL_SOCK (void);
00081 
00082 };
00083 
00084 #if !defined (ACE_LACKS_INLINE_FUNCTIONS)
00085 #include "SSL_SOCK.i"
00086 #endif /* ACE_LACKS_INLINE_FUNCTIONS */
00087 
00088 #include "ace/post.h"
00089 
00090 #endif /* ACE_SSL_SOCK_H */
00091 
00092 
00093 
00094 

Generated on Mon Jun 16 13:15:55 2003 for ACE_SSL by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002