mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-08 14:41:57 +08:00
managed secure socket allocation and deallocation #4313
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user