主要内容

target.tcpchannel类

包裹:目标

描述TCP通信属性

描述

使用target.tcpchannel,从中继承功能Target.CommunicationChannel,描述TCP通信属性。

创建一个target.tcpchannel对象,使用target。创建功能。

特性

展开全部

TCP服务器的IP地址。

属性:

GetAccess
上市
setAccess
上市

TCP端口。

属性:

GetAccess
上市
setAccess
上市

例子

全部收缩

此代码来自通过使用目标包装设置PIL连接性显示如何指定开发计算机和目标硬件之间的连接。在示例中,目标应用程序在开发计算机上作为单独的过程运行,并通过TCP通信通道通过Localhost

连接= target.greate(“目标连接”);connection.name =“主机过程连接”;connection.target = hostTarget;Connection.CommunicationChannel = target.greate('tcpchannel');Connection.CommunicationChannel.name =“外部流程TCPCommunicationChannel”;Connection.CommunicationChannel.ipaddress =“ Local主持”;Connection.CommunicationChannel.port ='0';
在R2020b中引入