removed loop accept and connect and added more debug info #4313

This commit is contained in:
XinyuHou 2015-01-29 15:40:30 +00:00
parent d15c99f41d
commit 767802f111
3 changed files with 41 additions and 27 deletions

View file

@ -18,7 +18,7 @@
#pragma once
#include "net/TCPSocket.h"
#include "base/XBase.h"
#include "net/XSocket.h"
class IEventQueue;
class SocketMultiplexer;
@ -26,10 +26,6 @@ class ISocketMultiplexerJob;
struct Ssl;
//! Generic socket exception
XBASE_SUBCLASS(XSecureSocket, XBase);
//! Secure socket
/*!
A secure socket using SSL.
@ -42,8 +38,12 @@ public:
ArchSocket socket);
~SecureSocket();
// ISocket overrides
void close();
void secureConnect();
void secureAccept();
bool isReady() const { return m_secureReady; }
bool isSecureReady();
bool isSecure() { return true; }
UInt32 secureRead(void* buffer, UInt32 n);