MLLPConnection Type

An MLLP client connection.

Remarks

This type represents an MLLP client connection.

Fields

Connected
boolean

Triggers a connection or disconnection.

This field triggers a connection or disconnection.

Setting this field to True initiates a connection attempt to the host specified by the RemoteHost field. If successful, the value of this field changes to True and the Connected event is fired.

ConnectionId
String

The Id of the connection.

This field contains an identifier generated by the class that uniquely identifies the connection.

InputData
String

The raw HL7 data to send.

This field is used to specify the HL7 data to send when the Send method is called.

Note that the class checks the following places for input data, in order, when Send is called. Input data is sent from the first place it is found:

  • A stream specified using the connection's InputStream field.
  • The contents of a file whose path has been set to the connection's InputFilename property.
  • The data set to the connection's InputData property.

InputDataB
byte[]

The raw HL7 data to send.

This field is used to specify the HL7 data to send when the Send method is called.

Note that the class checks the following places for input data, in order, when Send is called. Input data is sent from the first place it is found:

  • A stream specified using the connection's InputStream field.
  • The contents of a file whose path has been set to the connection's InputFilename property.
  • The data set to the connection's InputData property.

InputFilename
String

The path of a file containing HL7 data to send.

This field is used to specify a path to a file whose contents will be sent when the Send method is called.

Note that the class checks the following places for input data, in order, when Send is called. Input data is sent from the first place it is found:

  • A stream specified using the connection's InputStream field.
  • The contents of a file whose path has been set to the connection's InputFilename property.
  • The data set to the connection's InputData property.

InputStream
java.io.InputStream

A stream containing HL7 data to send.

This field is used to specify a stream containing HL7 data to send when the Send method is called.

Note that the class checks the following places for input data, in order, when Send is called. Input data is sent from the first place it is found:

  • A stream specified using the connection's InputStream field.
  • The contents of a file whose path has been set to the connection's InputFilename property.
  • The data set to the connection's InputData property.

LocalAddress
String

The address of the local interface through which the connection is passing.

This field reflects the address of the local network interface through which the connection is passing. This information is typically only important for multi-homed devices.

OutputData
String

The raw HL7 data received.

This field holds the raw HL7 data received from the MLLP client.

Note that the class will store output data in one of the following places, choosing the first one that is valid:

OutputDataB
byte[]

The raw HL7 data received.

This field holds the raw HL7 data received from the MLLP client.

Note that the class will store output data in one of the following places, choosing the first one that is valid:

OutputFilename
String

The path of a file in which to store received HL7 data.

This field is used to specify a path to a file in which to store HL7 data received from the MLLP client.

Note that the class will store output data in one of the following places, choosing the first one that is valid:

OutputStream
java.io.OutputStream

A stream to which received HL7 data should be written.

This field is used to specify a stream to which HL7 data received from the MLLP client should be written.

Note that the class will store output data in one of the following places, choosing the first one that is valid:

RemoteHost
String

The address of the MLLP client associated with the connection.

This field reflects the address of the MLLP client associated with the connection.

RemotePort
int

The port of the MLLP client associated with the connection.

This field reflects the port of the MLLP client associated with the connection.

Timeout
int

The timeout value, in seconds, for the connection.

This field specifies the timeout, in seconds, to use for the connection.

If set to 0, all operations return immediately, potentially failing with a WOULDBLOCK error if data can't be sent immediately.

If set to a positive value, the class will automatically retry each operation that would otherwise result in a WOULDBLOCK error for a maximum of Timeout seconds.

The class will use DoEvents to enter an efficient wait loop during any potential waiting period, making sure that all system events are processed immediately as they arrive. This ensures that the host application does not "freeze" and remains responsive.

If Timeout expires, and the operation is not yet complete, the class throws an exception.

Please note that by default, all timeouts are inactivity timeouts, i.e. the timeout period is extended by Timeout seconds when any amount of data is successfully sent or received.

The default value is 0 (asynchronous operation).

Constructors

public MLLPConnection();



Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks EDI 2020 Java Edition - Version 20.0 [Build 8203]