Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Panel | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
ON THIS PAGE
|
ifStreamReceive
SetLineEventPort(
...
messagePort As Object)
...
Sets the message port that roStreamLineEvent events will be posted to
SetByteEventPort(
...
messagePort As Object)
Sets the message port that roStreamByteEvent events will be posted to
SetByteArrayEventPort(messagePort As Object)
This method works like SetByteEventPort but causes roStreamByteArrayEvent messages like SetByteEventPort but causes roStreamByteArrayEvent messages to be posted to the message port when data is received. For some object types (for example, roTCPStream roTCPStream), this can be much more efficient since data no longer needs to be delivered to BrightScript a byte at a time.
SetReceiveEol(
...
messagePort As String or roByteArray)
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:
...