Class BlockTCP
A block that can connect to a host over TCP and supports SSL.
Implements
System.ComponentModel.INotifyPropertyChanged
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: RuriLib
Assembly: RuriLib.dll
Syntax
public class BlockTCP : BlockBase, INotifyPropertyChanged
Constructors
| Improve this Doc View SourceBlockTCP()
Creates a TCP block.
Declaration
public BlockTCP()
Properties
| Improve this Doc View SourceHost
The host to connect to.
Declaration
public string Host { get; set; }
Property Value
Type | Description |
---|---|
System.String |
IsCapture
Whether the output variable should be marked for Capture.
Declaration
public bool IsCapture { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Message
The message sent to the host.
Declaration
public string Message { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Port
The port to connect to.
Declaration
public string Port { get; set; }
Property Value
Type | Description |
---|---|
System.String |
TCPCommand
The command for the TCP client.
Declaration
public TCPCommand TCPCommand { get; set; }
Property Value
Type | Description |
---|---|
TCPCommand |
UseSSL
Whether the client will communicate over the Secure Sockets Layer.
Declaration
public bool UseSSL { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
VariableName
The name of the output variable where the TCP response will be stored.
Declaration
public string VariableName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceFromLS(String)
Builds a block from a line of LoliScript code.
Declaration
public override BlockBase FromLS(string line)
Parameters
Type | Name | Description |
---|---|---|
System.String | line | The line of LoliScript code |
Returns
Type | Description |
---|---|
BlockBase | The parsed block object |
Overrides
| Improve this Doc View SourceProcess(BotData)
Executes the actual block logic.
Declaration
public override void Process(BotData data)
Parameters
Type | Name | Description |
---|---|---|
BotData | data | The BotData needed for variable replacement |
Overrides
| Improve this Doc View SourceToLS(Boolean)
Converts the block to LoliScript code.
Declaration
public override string ToLS(bool indent = true)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | indent |
Returns
Type | Description |
---|---|
System.String |
Overrides
Implements
System.ComponentModel.INotifyPropertyChanged