summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/Endpoint.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Ice/Endpoint.cpp')
-rw-r--r--cpp/src/Ice/Endpoint.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/src/Ice/Endpoint.cpp b/cpp/src/Ice/Endpoint.cpp
index b88afdc2bcf..5af0812e83c 100644
--- a/cpp/src/Ice/Endpoint.cpp
+++ b/cpp/src/Ice/Endpoint.cpp
@@ -467,7 +467,7 @@ IceInternal::TcpEndpoint::connector() const
AcceptorPtr
IceInternal::TcpEndpoint::acceptor(EndpointPtr& endp) const
{
- TcpAcceptor* p = new TcpAcceptor(_instance, _port);
+ TcpAcceptor* p = new TcpAcceptor(_instance, _host, _port);
endp = new TcpEndpoint(_instance, _host, p->effectivePort(), _timeout);
return p;
}
@@ -802,7 +802,7 @@ IceInternal::SslEndpoint::connector() const
AcceptorPtr
IceInternal::SslEndpoint::acceptor(EndpointPtr& endp) const
{
- SslAcceptor* p = new SslAcceptor(_instance, _port);
+ SslAcceptor* p = new SslAcceptor(_instance, _host, _port);
endp = new SslEndpoint(_instance, _host, p->effectivePort(), _timeout);
return p;
}
@@ -1119,7 +1119,7 @@ IceInternal::UdpEndpoint::clientTransceiver() const
TransceiverPtr
IceInternal::UdpEndpoint::serverTransceiver(EndpointPtr& endp) const
{
- UdpTransceiver* p = new UdpTransceiver(_instance, _port, _connect);
+ UdpTransceiver* p = new UdpTransceiver(_instance, _host, _port, _connect);
endp = new UdpEndpoint(_instance, _host, p->effectivePort());
return p;
}