点击或拖拽改变大小

TcpForward 构造函数

实例化一个TCP转发的对象,需要本机端口号,远程ip地址及远程端口号

命名空间:  HslCommunication.Enthernet
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:12.0.0.0 (12.0.0.0)
语法
public TcpForward(
	int localPort,
	string host,
	int hostPort
)

参数

localPort
类型:SystemInt32
本机侦听的端口号
host
类型:SystemString
远程的IP地址
hostPort
类型:SystemInt32
远程的端口号信息
参见