Table of Contents

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

resource MaaResource

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

maa MaaTasker

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

port ushort

The TCP port number (0-65535), 0 means auto-select.

resource MaaResource

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

port ushort

The TCP port number (0-65535), 0 means auto-select.

maa MaaTasker

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.