2 * Copyright (c) 2014 Pantheon Technologies s.r.o. and others. All rights reserved.
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
9 package org.opendaylight.openflowjava.protocol.impl.core;
11 import io.netty.buffer.ByteBuf;
13 import java.net.InetSocketAddress;
16 * Wraps received messages (includes version) and sender address
18 * @author michal.polkorab
20 public class VersionMessageUdpWrapper extends VersionMessageWrapper {
22 private InetSocketAddress address;
25 * @param version Openflow wire version
26 * @param messageBuffer ByteBuf containing binary message
27 * @param address sender address
29 public VersionMessageUdpWrapper(short version, ByteBuf messageBuffer, InetSocketAddress address) {
30 super(version, messageBuffer);
31 this.address = address;
35 * @return sender address
37 public InetSocketAddress getAddress() {