DCL 4.0
Loading...
Searching...
No Matches
SSLSocket.cpp File Reference
#include <dcl/Config.h>
#include <sys/socket.h>
#include <dcl/Object.h>
#include <dcl/Charset.h>
#include <dcl/Numeric.h>
#include <dcl/SSLSocket.h>

Go to the source code of this file.

Functions

__DCL_BEGIN_NAMESPACE IMPLEMENT_CLASSINFO (SSLException, Exception) SSLException
 IMPLEMENT_CLASSINFO (SSLSocket, Socket) size_t SSLSocket

Function Documentation

◆ IMPLEMENT_CLASSINFO() [1/2]

__DCL_BEGIN_NAMESPACE IMPLEMENT_CLASSINFO ( SSLException ,
Exception  )

Definition at line 46 of file SSLSocket.cpp.

49 : Exception(_cause)
50{
51}

◆ IMPLEMENT_CLASSINFO() [2/2]

IMPLEMENT_CLASSINFO ( SSLSocket ,
Socket  )

Definition at line 116 of file SSLSocket.cpp.

120{
121#if __DCL_USE_OPENSSL
122 __DCL_ASSERT_HANDLE(__ctx != NULL);
123 __DCL_ASSERT_HANDLE(__ssl != NULL);
124 __DCL_TRACE2(__T("%d, %d\n"), (int) Socket::available(), SSL_pending(__ssl));
125 return (size_t) SSL_pending(__ssl);
126#else
127 return Socket::available();
128#endif
129}
#define NULL
Definition Config.h:340
#define __T(str)
Definition Object.h:44
#define __DCL_ASSERT_HANDLE(expr)
Definition Object.h:383
#define __DCL_TRACE2(fmt, arg1, arg2)
Definition Object.h:377
virtual size_t available() const __DCL_THROWS1(IOException *)
Definition File.cpp:401