diff options
Diffstat (limited to 'ACE/ace/SSL/SSL_SOCK.cpp')
-rw-r--r-- | ACE/ace/SSL/SSL_SOCK.cpp | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/ACE/ace/SSL/SSL_SOCK.cpp b/ACE/ace/SSL/SSL_SOCK.cpp new file mode 100644 index 00000000000..c6f1af15388 --- /dev/null +++ b/ACE/ace/SSL/SSL_SOCK.cpp @@ -0,0 +1,72 @@ +// $Id$ + +#include "SSL_SOCK.h" + +#if !defined (__ACE_INLINE__) +#include "SSL_SOCK.i" +#endif /* __ACE_INLINE__ */ + +#include "ace/OS_NS_errno.h" +#include "ace/os_include/os_signal.h" + +ACE_RCSID (ACE_SSL, + SSL_SOCK, + "$Id$") + + +ACE_BEGIN_VERSIONED_NAMESPACE_DECL + +ACE_SSL_SOCK::ACE_SSL_SOCK (void) +{ + ACE_TRACE ("ACE_SSL_SOCK::ACE_SSL_SOCK"); +} + +ACE_SSL_SOCK::~ACE_SSL_SOCK (void) +{ + ACE_TRACE ("ACE_SSL_SOCK::~ACE_SSL_SOCK"); +} + +int +ACE_SSL_SOCK::enable (int value) const +{ + ACE_TRACE ("ACE_SSL_SOCK::enable"); + + switch (value) + { +#ifdef SIGURG + case SIGURG: + case ACE_SIGURG: +#endif /* SIGURG */ + case SIGIO: + case ACE_SIGIO: + case ACE_CLOEXEC: + ACE_NOTSUP_RETURN (-1); + case ACE_NONBLOCK: + return ACE_IPC_SAP::enable (value); + default: + return -1; + } +} + +int +ACE_SSL_SOCK::disable (int value) const +{ + ACE_TRACE("ACE_SSL_SOCK::disable"); + switch (value) + { +#ifdef SIGURG + case SIGURG: + case ACE_SIGURG: +#endif /* SIGURG */ + case SIGIO: + case ACE_SIGIO: + case ACE_CLOEXEC: + ACE_NOTSUP_RETURN (-1); + case ACE_NONBLOCK: + return ACE_IPC_SAP::disable (value); + default: + return -1; + } +} + +ACE_END_VERSIONED_NAMESPACE_DECL |