一款简单易用的基础网络通讯组件库。

IRelayServiceRegisterPortAsync 方法

注册端口映射

Definition

命名空间: TouchSocket.Dmtp.Relay
程序集: TouchSocketPro.Dmtp (在 TouchSocketPro.Dmtp.dll 中) 版本:4.1.4.7+7f7e1f78093c99347956e09330d5d7aca1d2bdf2
C#
Task<Result> RegisterPortAsync(
	string remoteIPHost,
	TouchSocketConfig config,
	IDmtpActor actor
)

参数

remoteIPHost  String

[缺少 "M:TouchSocket.Dmtp.Relay.IRelayService.RegisterPortAsync(System.String,TouchSocket.Core.TouchSocketConfig,TouchSocket.Dmtp.IDmtpActor)" 的 <param name="remoteIPHost"/> 文档]

config  TouchSocketConfig

[缺少 "M:TouchSocket.Dmtp.Relay.IRelayService.RegisterPortAsync(System.String,TouchSocket.Core.TouchSocketConfig,TouchSocket.Dmtp.IDmtpActor)" 的 <param name="config"/> 文档]

actor  IDmtpActor

[缺少 "M:TouchSocket.Dmtp.Relay.IRelayService.RegisterPortAsync(System.String,TouchSocket.Core.TouchSocketConfig,TouchSocket.Dmtp.IDmtpActor)" 的 <param name="actor"/> 文档]

返回值

TaskResult

[缺少 "M:TouchSocket.Dmtp.Relay.IRelayService.RegisterPortAsync(System.String,TouchSocket.Core.TouchSocketConfig,TouchSocket.Dmtp.IDmtpActor)" 的 <returns> 文档]

参见