Class TCPServer
Class to open a TCP port, currently only to receive messages. Communicates
with the attacked ports using the PortTypeBus.
Syntax
[NodeCategory("Network", "TCP Server", NodeTick.Asynchronous, LifeCycle.Update, 0F, NodeMode.Standard, false)]
public class TCPServer : NodeRuntime
Fields
address
Declaration
[Tooltip("IP Address of the interface to open the port on.")]
[Field("IP Address", PortDirection.Right, FieldExtra.Read | FieldExtra.Constant)]
[SerializeField]
protected PortType<string> address
Field Value
commBus
Declaration
[Tooltip("Communication bus to communicate with other nodes.")]
[Field("Comm Bus", PortDirection.Left, FieldExtra.Read | FieldExtra.Write)]
[SerializeField]
protected PortType<byte[]> commBus
Field Value
kBusAddress
Declaration
public static byte kBusAddress
Field Value
port
Declaration
[Tooltip("Port number to open(Must be able to open using the system api).")]
[Field("Port", PortDirection.Right, FieldExtra.Read | FieldExtra.Constant)]
[SerializeField]
protected PortType<int> port
Field Value
Methods
Disable()
Forwarded OnDisable Unity event from the parent SystemGraphComponent
Declaration
public override void Disable()
Overrides
Enable(Scheduler.ClockState)
Forwarded OnEnable Unity event from the parent SystemGraphComponent
Declaration
public override void Enable(Scheduler.ClockState clockStatep)
Parameters
Overrides