public class OFMessage extends Object
Modifier and Type | Field and Description |
---|---|
protected short |
length |
static int |
MINIMUM_LENGTH |
static byte |
OFP_VERSION |
protected OFType |
type |
protected byte |
version |
protected int |
xid |
Constructor and Description |
---|
OFMessage() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static byte[] |
getData(OFMessage msg) |
static String |
getDataAsString(OFMessage msg) |
short |
getLength()
Get the length of this message
|
int |
getLengthU()
Get the length of this message, unsigned
|
protected ConcurrentHashMap<String,Object> |
getMessageStore() |
OFType |
getType()
Get the type of this message
|
byte |
getVersion()
Get the OpenFlow version of this message
|
int |
getXid()
Get the transaction id of this message
|
int |
hashCode() |
void |
readFrom(org.jboss.netty.buffer.ChannelBuffer data)
Read this message off the wire from the specified ByteBuffer
|
OFMessage |
setLength(short length)
Set the length of this message
|
OFMessage |
setLengthU(int length)
Set the length of this message, unsigned
|
void |
setType(OFType type)
Set the type of this message
|
void |
setVersion(byte version)
Set the OpenFlow version of this message
|
void |
setXid(int xid)
Set the transaction id of this message
|
String |
toString()
Returns a summary of the message
|
void |
writeTo(org.jboss.netty.buffer.ChannelBuffer data)
Write this message's binary format to the specified ByteBuffer
|
public static byte OFP_VERSION
public static int MINIMUM_LENGTH
protected byte version
protected OFType type
protected short length
protected int xid
protected ConcurrentHashMap<String,Object> getMessageStore()
public short getLength()
public int getLengthU()
public OFMessage setLength(short length)
length
- public OFMessage setLengthU(int length)
length
- public OFType getType()
public void setType(OFType type)
type
- public byte getVersion()
public void setVersion(byte version)
version
- public int getXid()
public void setXid(int xid)
xid
- public void readFrom(org.jboss.netty.buffer.ChannelBuffer data)
data
- public void writeTo(org.jboss.netty.buffer.ChannelBuffer data)
data
- public String toString()
public static byte[] getData(OFMessage msg)
Copyright © 2015. All rights reserved.