summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/isode/stroke/network/DummyConnection.java')
-rw-r--r--src/com/isode/stroke/network/DummyConnection.java14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/com/isode/stroke/network/DummyConnection.java b/src/com/isode/stroke/network/DummyConnection.java
index 51018ef..7cc302b 100644
--- a/src/com/isode/stroke/network/DummyConnection.java
+++ b/src/com/isode/stroke/network/DummyConnection.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010 Isode Limited.
+ * Copyright (c) 2010-2016 Isode Limited.
* All rights reserved.
* See the COPYING file for more information.
*/
@@ -58,8 +58,14 @@ public class DummyConnection extends Connection implements EventOwner {
return localAddress;
}
- public Signal1<SafeByteArray> onDataSent = new Signal1<SafeByteArray>();
+ @Override
+ public HostAddressPort getRemoteAddress() {
+ return remoteAddress;
+ }
- public EventLoop eventLoop;
- public HostAddressPort localAddress;
+ public Signal1<SafeByteArray> onDataSent = new Signal1<SafeByteArray>();
+
+ public EventLoop eventLoop;
+ public HostAddressPort localAddress = new HostAddressPort();
+ public HostAddressPort remoteAddress = new HostAddressPort();
} \ No newline at end of file