c5f26fc1985b2adc2a46dc018a0f3fe89e4f4156
[openflowjava.git] / openflow-protocol-api / src / main / java / org / opendaylight / openflowjava / protocol / api / connection / SwitchConnectionHandler.java
1 /*
2  * Copyright (c) 2013 Pantheon Technologies s.r.o. and others. All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8
9
10 package org.opendaylight.openflowjava.protocol.api.connection;
11
12 import java.net.InetAddress;
13
14 /**
15  * @author mirehak
16  * @author michal.polkorab
17  *
18  */
19 public interface SwitchConnectionHandler {
20     
21     /**
22      * @param connection to switch proving message sending/receiving, connection management
23      */
24     void onSwitchConnected(ConnectionAdapter connection);
25     
26     /**
27      * @param switchAddress
28      * @return true, if connection from switch having given address shell be accepted; false otherwise
29      */
30     boolean accept(InetAddress switchAddress);
31
32 }