Conflicts:

src/lib/plugin/ns/SecureSocket.cpp
This commit is contained in:
Jerry (Xinyu Hou) 2016-08-24 17:59:53 +01:00 committed by Andrew Nelless
parent 07902d623c
commit e0819b86cd
2 changed files with 9 additions and 9 deletions

View File

@ -128,16 +128,16 @@ void
SecureSocket::secureConnect()
{
setJob(new TSocketMultiplexerMethodJob<SecureSocket>(
this, &SecureSocket::serviceConnect,
getSocket(), isReadable(), isWritable()));
this, &SecureSocket::serviceConnect,
getSocket(), isReadable(), isWritable()));
}
void
SecureSocket::secureAccept()
{
setJob(new TSocketMultiplexerMethodJob<SecureSocket>(
this, &SecureSocket::serviceAccept,
getSocket(), isReadable(), isWritable()));
this, &SecureSocket::serviceAccept,
getSocket(), isReadable(), isWritable()));
}
TCPSocket::EJobResult
@ -218,7 +218,7 @@ SecureSocket::doWrite()
if (bufferSize == 0) {
return kRetry;
}
}
if (isSecureReady()) {
status = secureWrite(s_staticBuffer, bufferSize, bytesWrote);

View File

@ -46,15 +46,15 @@ public:
ISocketMultiplexerJob*
newJob();
void secureConnect();
void secureAccept();
EJobResult doRead();
EJobResult doWrite();
bool isFatal() const { return m_fatal; }
void isFatal(bool b) { m_fatal = b; }
bool isSecureReady();
void secureConnect();
void secureAccept();
int secureRead(void* buffer, int size, int& read);
int secureWrite(const void* buffer, int size, int& wrote);
EJobResult doRead();
EJobResult doWrite();
void initSsl(bool server);
bool loadCertificates(String& CertFile);