Added a get method for InetSocketAddress of a remote OF switch
[openflowjava.git] / openflow-protocol-api / src / main / java / org / opendaylight / openflowjava / protocol / api / connection / ConnectionAdapter.java
index cb3edd1ff78c7092f5c2a9ee86c5b7e060f3e54a..d9d63228a6a9ed79605629edcb5dbc74a1cfec8a 100644 (file)
@@ -9,6 +9,7 @@
 
 package org.opendaylight.openflowjava.protocol.api.connection;
 
+import java.net.InetSocketAddress;
 import java.util.concurrent.Future;
 
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.OpenflowProtocolListener;
@@ -32,6 +33,10 @@ public interface ConnectionAdapter extends OpenflowProtocolService {
      */
     public boolean isAlive();
     
+    /**
+     * @return address of the remote end - address of a switch if connected
+     */
+    public InetSocketAddress getRemoteAddress();
     /**
      * @param messageListener here will be pushed all messages from switch
      */