Chameleon and Iguana Plugin C# Class Libraries

Wrapper.DetectMessage Method 

This method must be overridden in a descendant class to detect the beginning and end of a message for a specific wrapper protocol.

[Visual Basic]
MustOverride Public Function DetectMessage( _
   ByVal buffer As StringBuilder, _
   ByVal message As StringBuilder _
) As Boolean
[C#]
public abstract bool DetectMessage(
   StringBuilder buffer,
   StringBuilder message
);

Remarks

The routine should remove the data read from the buffer set the Message to be equal to the message data and return true if a message is present in the buffer.

Otherwise, it should just return false and not alter the buffer. In this case, the Message is undefined.

See Also

Wrapper Class | iNTERFACEWARE.Chameleon Namespace