mirror of
https://github.com/pocoproject/poco.git
synced 2025-04-16 23:12:57 +02:00
fix #3968 Poco::Net::SocketConnector constructor should take SocketAddress by const reference
This commit is contained in:
parent
687f9fb2f5
commit
69a6ddbd90
@ -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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user