Classes:
[Note: Using this.splitter in a string will lead the NetServer and NetClient to view the string as multiple messages.]
[Use Parse and JoinForParse if you want avoid the NetServer and NetClient from automatically splitting your message on arrival].
- string[] Split(string message) Splits the message by this.splitter string.
Parameters:
- string message: message being split using this.splitter field.
- string Join(param string[] messages) Joins multiple messages together using this.splitter in between each string. Network will view resulting string as multiple
messages.
Parameters:
- strings... messages: messages being joined together using the this.splitter string.
- string[] Parse(string message) Splits the message by this.parser string.
Parameters:
- string message: message being parsed using this.parser field.
- string JoinForParse(param string[] messages) Joins multiple messages together using this.parser in between each string. Network will view resulting string as
a single message.
Public Fields:
- string splitter: The string used to split a message into multiple strings.
- string parser: The string used to parse a message into multiple strings.