org.mobicents.protocols.mgcp.utils
Class PacketRepresentation

java.lang.Object
  extended by org.mobicents.protocols.mgcp.utils.PacketRepresentation

public class PacketRepresentation
extends Object

Start time:13:36:13 2008-11-22
Project: mobicents-media-server-controllers
Simple packet representation, has byte[] raw data and remote port/address fields

Author:
baranowb

Constructor Summary
protected PacketRepresentation(int byteArrSize, PacketRepresentationFactory prFactory)
           
 
Method Summary
 ByteBuffer getBuffer()
           
 InetSocketAddress getInetAddress()
           
 int getLength()
           
 byte[] getRawData()
           
 InetAddress getRemoteAddress()
           
 int getRemotePort()
           
 void release()
           
 void setLength(int length)
           
 void setRemoteAddress(InetSocketAddress remoteAddress)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PacketRepresentation

protected PacketRepresentation(int byteArrSize,
                               PacketRepresentationFactory prFactory)
Method Detail

getBuffer

public ByteBuffer getBuffer()

getRawData

public byte[] getRawData()

getLength

public int getLength()

getRemotePort

public int getRemotePort()

setLength

public void setLength(int length)

getRemoteAddress

public InetAddress getRemoteAddress()

getInetAddress

public InetSocketAddress getInetAddress()

setRemoteAddress

public void setRemoteAddress(InetSocketAddress remoteAddress)

release

public void release()


Copyright © 2013 TeleStax, Inc.. All Rights Reserved.