Mass replace CRLF->LF
[openflowjava.git] / openflow-protocol-impl / src / main / java / org / opendaylight / openflowjava / protocol / impl / core / VersionMessageUdpWrapper.java
1 /*
2  * Copyright (c) 2014 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 package org.opendaylight.openflowjava.protocol.impl.core;
10
11 import io.netty.buffer.ByteBuf;
12
13 import java.net.InetSocketAddress;
14
15 /**
16  * Wraps received messages (includes version) and sender address
17  
18  * @author michal.polkorab
19  */
20 public class VersionMessageUdpWrapper extends VersionMessageWrapper {
21
22     private InetSocketAddress address;
23
24     /**
25      * @param version Openflow wire version
26      * @param messageBuffer ByteBuf containing binary message
27      * @param address sender address
28      */
29     public VersionMessageUdpWrapper(short version, ByteBuf messageBuffer, InetSocketAddress address) {
30         super(version, messageBuffer);
31         this.address = address;
32     }
33
34     /**
35      * @return sender address
36      */
37     public InetSocketAddress getAddress() {
38         return address;
39     }
40 }