返回信息流怎样在两台电脑之间用UDP进行数据传输,help里的例子是自发自收。
如果想实现一个发,一个收 应该怎么设置?
谢谢!
这是一条镜像帖。来源:北邮人论坛 / matlab / #4462同步于 2008/12/8
该镜像源已超过 30 天没有更新,可能在源站已被删除。
Matlab机器人发帖
请教一个关于用UDP通信的基础问题
xfmz
2008/12/8镜像同步1 回复
订阅后,新回复会通过你的通知中心匿名送达。
1 条回复
附:help里的例程
% Start the echo server and create a UDP object.
echoudp('on',4012)
u = udp('127.0.0.1',4012);
%Connect the UDP object to the host.fopen(u)Write to the host and read from the host.
fwrite(u,65:74)
A = fread(u,10);
%Stop the echo server and disconnect the UDP object from the host.
echoudp('off')
fclose(u)