tuwien.auto.eicl.struct.eibnetip

Class Connect_Request


public class Connect_Request
extends java.lang.Object

This class creates an EIBNET/IP Connection Request. A Connection Request is sent to server to open a point to point connection (Tunnelling or Management). The server replies then immediately with a Connection Response. Note that in this api version only tunnelling on link layer is supported.
See Also:
Connect_Response, CEMI_Connection

Constructor Summary

Connect_Request(short _Connectiontypecode, short[] _Options, int _LocalPort)
Creates a new Connect_Request object.

Method Summary

byte[]
toByteArray()
The byte representation of this message.

Constructor Details

Connect_Request

public Connect_Request(short _Connectiontypecode,
                       short[] _Options,
                       int _LocalPort)
            throws EICLException
Creates a new Connect_Request object. Only tunnelling on link layer is supported in this version, all other connection codes cause an exception.
Parameters:
_Connectiontypecode - the connection type code
_Options - The options processed in the HPAI structure after the byte 2.
_LocalPort - the local server port
Throws:
EICLException - If the connection type code is not TUNNEL_CONNECTION this Exception is thrown

Method Details

toByteArray

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