managed secure socket allocation and deallocation #4313

This commit is contained in:
XinyuHou
2015-01-28 13:07:03 +00:00
parent d80aa7c938
commit 622e40e5d7
20 changed files with 119 additions and 48 deletions

View File

@@ -55,7 +55,7 @@ TCPSocketFactory::create(bool secure) const
m_socketMultiplexer
};
socket = static_cast<IDataSocket*>(
ARCH->plugin().invoke(s_networkSecurity, "getSecureSocket", args));
ARCH->plugin().invoke(s_networkSecurity, "getSocket", args));
}
else {
socket = new TCPSocket(m_events, m_socketMultiplexer);
@@ -74,7 +74,7 @@ TCPSocketFactory::createListen(bool secure) const
m_socketMultiplexer
};
socket = static_cast<IListenSocket*>(
ARCH->plugin().invoke(s_networkSecurity, "getSecureListenSocket", args));
ARCH->plugin().invoke(s_networkSecurity, "getListenSocket", args));
}
else {
socket = new TCPListenSocket(m_events, m_socketMultiplexer);