removed client connection when SSL handshake failed #4313

This commit is contained in:
XinyuHou 2015-02-02 14:18:34 +00:00
parent ad230d46e6
commit 10e6b5ad63
4 changed files with 22 additions and 3 deletions

View file

@ -62,7 +62,7 @@ public:
protected:
ArchSocket getSocket() { return m_socket; }
IEventQueue* getEvents() { return m_events; }
virtual bool isSecureReady() { return false; }
virtual bool isSecure() { return false; }
virtual UInt32 secureRead(void* buffer, UInt32) { return 0; }
@ -76,11 +76,12 @@ protected:
Mutex& getMutex() { return m_mutex; }
void sendEvent(Event::Type);
private:
void init();
void sendConnectionFailedEvent(const char*);
void sendEvent(Event::Type);
void onConnected();
void onInputShutdown();
void onOutputShutdown();