public interface SecsMessageReceiveItf
Use messageTypeAdd
to register for receiving and handling
particular message types in your application.
| Modifier and Type | Method and Description |
|---|---|
void |
secsMessageReceive(SecsConn sp,
int stream,
int func,
boolean sendReply,
int transactionID,
String data,
String header)
Delivery of a SECS message.
|
void secsMessageReceive(SecsConn sp, int stream, int func, boolean sendReply, int transactionID, String data, String header)
sp - the SECS connectionstream - the message ID stream valuefunc - the message ID function valuesendReply - whether a reply message should be senttransactionID - the SYSTEM message identifier from the message header. This
value is used to send a matching reply message.data - the message data formatted as TSN text.
Use the TclList or the StringList class to parse it.header - a TSN representation of the message header bytes which is only
used to send a Stream 9 error message using the sendS9 method.