Rotcpstream – BrightSign Object Reference Manual (FW 5.1) User Manual
Page 246

238
roTCPStream
The ifStreamReceive interface provides the following:
•
SetLineEventPort(a As Object)
•
SetByteEventPort(a As Object)
•
SetReceiveEol(a As String)
•
SetMatcher(matcher As Object) As Boolean: Instructs the stream to use the specified matcher. This
object returns True if successful. Pass Invalid to this method to stop using the specified matcher.
The ifUserData interface provides the following:
•
SetUserData(a As Object): Supplies an object that will be provided by every event called by an
roTCPStream instance.
•
GetUserData() As Object
The ifStreamSend interface provides the following:
•
SetSendEol(eol_sequence As String) As Void: Sets the EOL sequence when writing to the stream.
•
SendByte(byte As Integer) As Void: Writes the specified byte to the stream.
•
SendLine(string As String) As Void: Writes the specified characters to the stream followed by the
current EOL sequence.
•
SendBlock(a As Dynamic) As Void: Writes the specified characters to the stream. This method can support
either a string or an
. If the block is a string, any null bytes will terminate the block.
•
Flush()
The ifTCPStream interface provides the following: