2 * Copyright (c) 2003 University of Murcia. All rights reserved.
\r
3 * --------------------------------------------------------------
\r
4 * For more information, please see <http://www.umu.euro6ix.org/>.
\r
7 package org.umu.cops.stack;
\r
9 import java.io.IOException;
\r
10 import java.io.OutputStream;
\r
13 * COPS IPv6 Last PDP Address
\r
15 * @version COPSIpv6LastPdpAddr.java, v 1.00 2003
\r
18 public class COPSIpv6LastPdpAddr extends COPSIpv6PdpAddress {
\r
20 public COPSIpv6LastPdpAddr() {
\r
22 // TODO - FIXME later, currently not in use and the header is now immutable
\r
23 // _objHdr.setCNum(COPSObjHeader.COPS_LAST_PDP_ADDR);
\r
26 public COPSIpv6LastPdpAddr(byte[] dataPtr) {
\r
31 * Method isLastPdpAddress
\r
36 public boolean isLastPdpAddress() {
\r
41 * Write an object textual description in the output stream
\r
43 * @param os an OutputStream
\r
45 * @throws IOException
\r
48 public void dump(OutputStream os) throws IOException {
\r
50 os.write(new String("Ipv6PdpAddress" + "\n").getBytes());
\r
51 os.write(new String("Address: " + _addr.getIpName() + "\n").getBytes());
\r
52 os.write(new String("Port: " + _tcpPort + "\n").getBytes());
\r