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.cpp | |
parent | 2e0f8fb6e558088b33bdee83bc5ff20014e983b3 (diff) |
added ace + vcproj for win
--HG--
branch : trunk
Diffstat (limited to 'externals/ace/SSL/SSL_SOCK.cpp')
-rw-r--r-- | externals/ace/SSL/SSL_SOCK.cpp | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/externals/ace/SSL/SSL_SOCK.cpp b/externals/ace/SSL/SSL_SOCK.cpp new file mode 100644 index 00000000000..b46762345ba --- /dev/null +++ b/externals/ace/SSL/SSL_SOCK.cpp @@ -0,0 +1,72 @@ +// $Id: SSL_SOCK.cpp 80826 2008-03-04 14:51:23Z wotte $ + +#include "SSL_SOCK.h" + +#if !defined (__ACE_INLINE__) +#include "SSL_SOCK.inl" +#endif /* __ACE_INLINE__ */ + +#include "ace/OS_NS_errno.h" +#include "ace/os_include/os_signal.h" + +ACE_RCSID (ACE_SSL, + SSL_SOCK, + "$Id: SSL_SOCK.cpp 80826 2008-03-04 14:51:23Z wotte $") + + +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 |