Send Method
Sends HL7 data to the MLLP server.
Syntax
int Send();
Remarks
The Send method sends the string or byte array in InputData to the specified server. Alternatively, you can set InputFilename to the name of a file with HL7 contents.
Before calling this method, set the RemoteHost and RemotePort properties to the server credentials and Connect or set Connected to True.
Sending Data Example
mllpClient.InputData = "HL7Data"; mllpClient.Send();
If the data was received by the server, the class will receive a response and the AckIn event will fire.
Error Handling
This method returns a result code; 0 indicates success, while a non-zero error code indicates that this method encountered an error during its execution. If an error occurs, the GetLastError() method can be called to retrieve the associated error message. (Note: This method's result code can also be obtained by calling the GetLastErrorCode() method after it returns.)