Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: added info from MC

Insert excerpt
BrightScript Version Navigation Menu
BrightScript Version Navigation Menu
nopaneltrue

...

SetReceiveEol(a As String or roByteArray)

You can pass either a string or a roByteArray instance to the ifStreamReceive.SetReceiveEol method. This means that a NUL byte can be used Sets the sequence that will signify the end of line and cause a roStreamLineEvent to be delivered to the message port set by SetLineEventPort. If the sequence contains NUL bytes it must be passed as a roByteArray since strings may not contain NUL bytes.

To use a NUL byte as a line terminator:

Code Block
languagejs
eol = CreateObject("roByteArray")
eol.Push(0)
mp = CreateObject("roMessagePort")
client = CreateObject("roTCPStream")
client.SetReceiveEol(eol)
client.SetLineEventPort(mp)

...