tuwien.auto.eicl.struct.eibnetip

Class Disconnect_Request


public class Disconnect_Request
extends java.lang.Object

This class encapsulates a representation of a EIBnet/IP Disconnect Request message. This message is sent by the requesting side for closing a established connection, and is answered with a Disconnect Response message.
See Also:
Disconnect_Response

Constructor Summary

Disconnect_Request(byte[] _Disconnect_Request)
This constructor parses a byte array.
Disconnect_Request(short _Channelid, int _LocalPort)
This constructor is used for outgoing requests.

Method Summary

short
getChannelID()
Returns the channel ID of the connection being closed.
HPAI
getEndPoint()
Get the client end point.
short
getReserved()
Returns the reserved byte of this message (never used).
byte[]
toByteArray()
The byte array representation of this message.

Constructor Details

Disconnect_Request

public Disconnect_Request(byte[] _Disconnect_Request)
            throws EICLException
This constructor parses a byte array. It is used for incoming requests. Pass all bytes after the EIBnet/IP header to this constructor.
Parameters:
_Disconnect_Request - The byte array starting after EIBnet/IP header
Throws:
EICLException - forwards the IOException and HPAI EICLException
See Also:
HPAI

Disconnect_Request

public Disconnect_Request(short _Channelid,
                          int _LocalPort)
            throws EICLException
This constructor is used for outgoing requests. It creates a new Request with the given parameters. Use this for outgoing requests.
Parameters:
_Channelid - the channelid
_LocalPort - the local client port
Throws:
EICLException - forwards the EICLException thrown by the HPAI constructor
See Also:
HPAI

Method Details

getChannelID

public short getChannelID()
Returns the channel ID of the connection being closed.
Returns:
The connection channel ID.

getEndPoint

public HPAI getEndPoint()
Get the client end point.
Returns:
Client end point.

getReserved

public short getReserved()
Returns the reserved byte of this message (never used).
Returns:
The reserved byte.

toByteArray

public byte[] toByteArray()
            throws EICLException
The byte array representation of this message.
Returns:
The byte array of this message.
Throws:
EICLException - forwards IOException