org.mobicents.protocols.smpp.gsm
Class PortAddressing16

java.lang.Object
  extended by org.mobicents.protocols.smpp.gsm.AbstractHeaderElement
      extended by org.mobicents.protocols.smpp.gsm.RecurringHeaderElement
          extended by org.mobicents.protocols.smpp.gsm.PortAddressing16
All Implemented Interfaces:
HeaderElement

public class PortAddressing16
extends RecurringHeaderElement

16-bit Port addressing. 3GPP TS 23.040 9.2.3.24.4.

Version:
$Id: PortAddressing16.java 484 2010-02-08 16:08:50Z orank $

Constructor Summary
PortAddressing16()
           
PortAddressing16(int sourcePort, int destPort)
           
 
Method Summary
 boolean doWrite(int segmentNum, ByteBuffer buffer)
           
 int getDestPort()
           
 int getLength()
          Get the total number of octets this header element encodes as excluding the IEI and the IEI-Data-Length fields.
 int getSourcePort()
           
 void setDestPort(int destPort)
           
 void setSourcePort(int sourcePort)
           
 
Methods inherited from class org.mobicents.protocols.smpp.gsm.RecurringHeaderElement
isRecurring
 
Methods inherited from class org.mobicents.protocols.smpp.gsm.AbstractHeaderElement
equals, isComplete, postProcess, reset, write
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortAddressing16

public PortAddressing16()

PortAddressing16

public PortAddressing16(int sourcePort,
                        int destPort)
Method Detail

getLength

public int getLength()
Description copied from interface: HeaderElement
Get the total number of octets this header element encodes as excluding the IEI and the IEI-Data-Length fields.

Returns:
The number of octets in this header element's IE-Data, which may exceed 140 octets.

doWrite

public boolean doWrite(int segmentNum,
                       ByteBuffer buffer)
Overrides:
doWrite in class AbstractHeaderElement

getSourcePort

public int getSourcePort()

setSourcePort

public void setSourcePort(int sourcePort)

getDestPort

public int getDestPort()

setDestPort

public void setDestPort(int destPort)


Copyright © 2011 Mobicents. All Rights Reserved.