SSL_SOCK.inl

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // $Id: SSL_SOCK.inl 73790 2006-07-27 20:43:46Z wotte $
00004 
00005 #include "ace/OS_NS_sys_socket.h"
00006 
00007 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00008 
00009 ACE_INLINE void
00010 ACE_SSL_SOCK::set_handle (ACE_HANDLE fd)
00011 {
00012   this->ACE_SOCK::set_handle (fd);
00013 }
00014 
00015 ACE_INLINE ACE_HANDLE
00016 ACE_SSL_SOCK::get_handle (void) const
00017 {
00018   // return this->ssl_ ? (ACE_HANDLE) ::SSL_get_fd (this->ssl_) : ACE_INVALID_HANDLE;
00019   return this->ACE_SOCK::get_handle ();
00020 }
00021 
00022 
00023 ACE_INLINE int
00024 ACE_SSL_SOCK::control (int cmd, void *arg) const
00025 {
00026   return ACE_OS::ioctl (this->get_handle (), cmd, arg);
00027 }
00028 
00029 ACE_INLINE int
00030 ACE_SSL_SOCK::set_option (int level,
00031                      int option,
00032                      void *optval,
00033                      int optlen) const
00034 {
00035 //   switch (option)
00036 //     {
00037 //     case SO_SNDBUF:
00038 //       return ::BIO_set_write_buffer_size (this->io_bio_, *((int *) optval));
00039 //     case SO_RCVCBUF:
00040 //       return ::BIO_set_read_buffer_size (this->io_bio_, *((int *) optval));
00041 //     default:
00042       return ACE_OS::setsockopt (this->get_handle (),
00043                                  level,
00044                                  option, (char *) optval,
00045                                  optlen);
00046 //    }
00047 }
00048 
00049 // Provides access to the ACE_OS::getsockopt system call.
00050 
00051 ACE_INLINE int
00052 ACE_SSL_SOCK::get_option (int level,
00053                      int option,
00054                      void *optval,
00055                      int *optlen) const
00056 {
00057 //  switch (option)
00058 //    {
00059 //     case SO_SNDBUF:
00060 //       return ::BIO_get_write_buffer_size (this->io_bio_, *((int *) optval));
00061 //     case SO_RCVCBUF:
00062 //       return ::BIO_get_read_buffer_size (this->io_bio_, *((int *) optval));
00063 //    default:
00064       return ACE_OS::getsockopt (this->get_handle (),
00065                                  level,
00066                                  option, (char *) optval,
00067                                  optlen);
00068 //    }
00069 }
00070 
00071 ACE_END_VERSIONED_NAMESPACE_DECL

Generated on Sun Jan 27 13:03:21 2008 for ACE_SSL by doxygen 1.3.6