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.net.Socket;
\r
13 * COPS IPv4 Output Interface
\r
15 * @version COPSIpv4OutInterface.java, v 1.00 2003
\r
18 public class COPSIpv4OutInterface extends COPSIpv4Interface {
\r
19 public COPSIpv4OutInterface() {
\r
20 _objHdr = new COPSObjHeader();
\r
21 _objHdr.setCNum(COPSObjHeader.COPS_ININTF);
\r
24 public COPSIpv4OutInterface(byte[] dataPtr) {
\r
34 public String className() {
\r
35 return "COPSIpv4OutInterface";
\r
39 * Method isInInterface
\r
44 public boolean isInInterface() {
\r
49 * Writes data to given socket
\r
51 * @param id a Socket
\r
53 * @throws IOException
\r
56 public void writeData(Socket id) throws IOException {
\r