Method CreateTcp
- Namespace
- MaaFramework.Binding
- Assembly
- MaaFramework.Binding.Native.dll
CreateTcp(MaaResource)
Creates a MaaFramework.Binding.MaaAgentClient instance with TCP connection.
The callback (from resource) will be forwarded to the agent server.
public static MaaAgentClient CreateTcp(MaaResource resource)Parameters
resourceMaaResource-
The resource.
Returns
- MaaAgentClient
-
The MaaFramework.Binding.MaaAgentClient instance.
Remarks
The client listens on 127.0.0.1 at the specified port. If 0 is passed, an available port is automatically selected.
AgentServer can use the port number from the identifier property to connect via TCP.
CreateTcp(MaaTasker)
Creates a MaaFramework.Binding.MaaAgentClient instance with TCP connection.
The callback (from resource) will be forwarded to the agent server.
public static MaaAgentClient CreateTcp(MaaTasker maa)Parameters
maaMaaTasker-
The tasker including resource and controller.
Returns
- MaaAgentClient
-
The MaaFramework.Binding.MaaAgentClient instance.
Remarks
The client listens on 127.0.0.1 at the specified port. If 0 is passed, an available port is automatically selected.
AgentServer can use the port number from the identifier property to connect via TCP.
CreateTcp(ushort, MaaResource)
Creates a MaaFramework.Binding.MaaAgentClient instance with TCP connection.
The callback (from resource) will be forwarded to the agent server.
public static MaaAgentClient CreateTcp(ushort port, MaaResource resource)Parameters
portushort-
The TCP port number (0-65535), 0 means auto-select.
resourceMaaResource-
The resource.
Returns
- MaaAgentClient
-
The MaaFramework.Binding.MaaAgentClient instance.
Remarks
The client listens on 127.0.0.1 at the specified port. If 0 is passed, an available port is automatically selected.
AgentServer can use the port number from the identifier property to connect via TCP.
CreateTcp(ushort, MaaTasker)
Creates a MaaFramework.Binding.MaaAgentClient instance with TCP connection.
The callback (from resource) will be forwarded to the agent server.
public static MaaAgentClient CreateTcp(ushort port, MaaTasker maa)Parameters
portushort-
The TCP port number (0-65535), 0 means auto-select.
maaMaaTasker-
The tasker including resource and controller.
Returns
- MaaAgentClient
-
The MaaFramework.Binding.MaaAgentClient instance.
Remarks
The client listens on 127.0.0.1 at the specified port. If 0 is passed, an available port is automatically selected.
AgentServer can use the port number from the identifier property to connect via TCP.