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

SSL_SOCK.i

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 // $Id: SSL_SOCK.i,v 1.1.1.1 2001/12/04 14:33:14 chad Exp $
00003 
00004 ASYS_INLINE void
00005 ACE_SSL_SOCK::set_handle (ACE_HANDLE fd)
00006 {
00007   this->ACE_SOCK::set_handle (fd);
00008 }
00009 
00010 ASYS_INLINE ACE_HANDLE
00011 ACE_SSL_SOCK::get_handle (void) const
00012 {
00013   // return this->ssl_ ? (ACE_HANDLE) ::SSL_get_fd (this->ssl_) : ACE_INVALID_HANDLE;
00014   return this->ACE_SOCK::get_handle ();
00015 }
00016 
00017 
00018 ASYS_INLINE int 
00019 ACE_SSL_SOCK::control (int cmd, void *arg) const
00020 {
00021   return ACE_OS::ioctl (this->get_handle (), cmd, arg);
00022 }
00023 
00024 ASYS_INLINE int 
00025 ACE_SSL_SOCK::set_option (int level, 
00026                      int option, 
00027                      void *optval, 
00028                      int optlen) const
00029 {
00030 //   switch (option)
00031 //     {
00032 //     case SO_SNDBUF:
00033 //       return ::BIO_set_write_buffer_size (this->io_bio_, *((int *) optval));
00034 //     case SO_RCVCBUF:
00035 //       return ::BIO_set_read_buffer_size (this->io_bio_, *((int *) optval));
00036 //     default:
00037       return ACE_OS::setsockopt (this->get_handle (),
00038                                  level, 
00039                                  option, (char *) optval,
00040                                  optlen);
00041 //    }
00042 }
00043 
00044 // Provides access to the ACE_OS::getsockopt system call.
00045 
00046 ASYS_INLINE int 
00047 ACE_SSL_SOCK::get_option (int level, 
00048                      int option, 
00049                      void *optval, 
00050                      int *optlen) const
00051 {
00052 //  switch (option)
00053 //    {
00054 //     case SO_SNDBUF:
00055 //       return ::BIO_get_write_buffer_size (this->io_bio_, *((int *) optval));
00056 //     case SO_RCVCBUF:
00057 //       return ::BIO_get_read_buffer_size (this->io_bio_, *((int *) optval));
00058 //    default:
00059       return ACE_OS::getsockopt (this->get_handle (),
00060                                  level, 
00061                                  option, (char *) optval,
00062                                  optlen);
00063 //    }
00064 }

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