fix #3968 Poco::Net::SocketConnector constructor should take SocketAddress by const reference

This commit is contained in:
Alexander B 2023-05-11 14:39:32 +03:00
parent 687f9fb2f5
commit 69a6ddbd90

View File

@ -73,14 +73,14 @@ class SocketConnector
/// if special steps are necessary to create a ServiceHandler object. /// if special steps are necessary to create a ServiceHandler object.
{ {
public: public:
explicit SocketConnector(SocketAddress& address): explicit SocketConnector(const SocketAddress& address):
_pReactor(0) _pReactor(0)
/// Creates a SocketConnector, using the given Socket. /// Creates a SocketConnector, using the given Socket.
{ {
_socket.connectNB(address); _socket.connectNB(address);
} }
SocketConnector(SocketAddress& address, SocketReactor& reactor, bool doRegister = true) : SocketConnector(const SocketAddress& address, SocketReactor& reactor, bool doRegister = true) :
_pReactor(0) _pReactor(0)
/// Creates an connector, using the given ServerSocket. /// Creates an connector, using the given ServerSocket.
/// The SocketConnector registers itself with the given SocketReactor. /// The SocketConnector registers itself with the given SocketReactor.