3 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
5 * This program and the accompanying materials are made available under the
6 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
7 * and is available at http://www.eclipse.org/legal/epl-v10.html
10 package org.opendaylight.openflowplugin.openflow.core;
12 import org.openflow.protocol.OFMessage;
15 * Interface to be implemented by applications that want to receive OF messages.
18 public interface IMessageListener {
20 * This method is called by the Controller when a message is received from a switch.
21 * Application who is interested in receiving OF Messages needs to implement this method.
22 * @param sw The ISwitch which sent the OF message
23 * @param msg The OF message
25 public void receive(ISwitch sw, OFMessage msg);