summaryrefslogtreecommitdiff
path: root/java/src/IceInternal/TcpEndpointI.java
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2014-09-17 13:50:35 -0230
committerDwayne Boone <dwayne@zeroc.com>2014-09-17 13:50:35 -0230
commita3d676c4199ff53edd458abf7ce52f6cf83213b4 (patch)
treed6975ba5b7c3d9e58b5378f2e27ec536e4157517 /java/src/IceInternal/TcpEndpointI.java
parentSimplified creation of Admin facets in IceBox; simplified test for Admin enab... (diff)
downloadice-a3d676c4199ff53edd458abf7ce52f6cf83213b4.tar.bz2
ice-a3d676c4199ff53edd458abf7ce52f6cf83213b4.tar.xz
ice-a3d676c4199ff53edd458abf7ce52f6cf83213b4.zip
ICE-4891 some minor improvements
Diffstat (limited to 'java/src/IceInternal/TcpEndpointI.java')
-rw-r--r--java/src/IceInternal/TcpEndpointI.java20
1 files changed, 4 insertions, 16 deletions
diff --git a/java/src/IceInternal/TcpEndpointI.java b/java/src/IceInternal/TcpEndpointI.java
index 9678e59803d..4f8fa51c9ac 100644
--- a/java/src/IceInternal/TcpEndpointI.java
+++ b/java/src/IceInternal/TcpEndpointI.java
@@ -155,25 +155,13 @@ final class TcpEndpointI extends IPEndpointI
@Override
public Acceptor acceptor(String adapterName)
{
- return new TcpAcceptor(_instance, _host, _port);
+ return new TcpAcceptor(this, _instance, _host, _port);
}
- //
- // Return (potentially) new endpoint based on info from associated
- // Transceiver or Acceptor, which might differ from this endpoint,
- // for example, if a dynamic port number was assigned.
- //
- @Override
- public EndpointI endpoint(Transceiver transceiver)
- {
- return this;
- }
-
- @Override
- public EndpointI endpoint(Acceptor acceptor)
+ public TcpEndpointI endpoint(TcpAcceptor acceptor)
{
- TcpAcceptor p = (TcpAcceptor)acceptor;
- return createEndpoint(_host, p.effectivePort(), _connectionId);
+ return new TcpEndpointI(_instance, _host, acceptor.effectivePort(), _sourceAddr, _timeout,
+ _connectionId, _compress);
}
@Override