mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-23 08:31:43 +02:00
Backport #2257 to Poco 1.9.1
This commit is contained in:
@@ -62,9 +62,9 @@ void SecureServerSocketImpl::connectNB(const SocketAddress& address)
|
||||
}
|
||||
|
||||
|
||||
void SecureServerSocketImpl::bind(const SocketAddress& address, bool reuseAddress)
|
||||
void SecureServerSocketImpl::bind(const SocketAddress& address, bool reuseAddress, bool reusePort)
|
||||
{
|
||||
_impl.bind(address, reuseAddress);
|
||||
_impl.bind(address, reuseAddress, reusePort);
|
||||
reset(_impl.sockfd());
|
||||
}
|
||||
|
||||
|
@@ -192,11 +192,11 @@ void SecureSocketImpl::connectSSL(bool performHandshake)
|
||||
}
|
||||
|
||||
|
||||
void SecureSocketImpl::bind(const SocketAddress& address, bool reuseAddress)
|
||||
void SecureSocketImpl::bind(const SocketAddress& address, bool reuseAddress, bool reusePort)
|
||||
{
|
||||
poco_check_ptr (_pSocket);
|
||||
|
||||
_pSocket->bind(address, reuseAddress);
|
||||
_pSocket->bind(address, reuseAddress, reusePort);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user