我想将数据从用Matlab编写的客户端发送到用C编写的服务器。在服务器中读取时,并不是一次读取操作中接收到所有数据,而是分为两次连续读取。
Matlab 代码包含 TCP 服务器的代码,该服务器接收一些数据,然后进行一些处理,然后作为客户端通过 TCP 套接字将处理的输出写入(发送)到 C 中的服务器。
这是用 Matlab 编写的客户端代码。
% A TCP server object defined for getting raw data and processing
% it. The object is called 'TCPServer'. It is not related to the
% problem.
% TCP client for sending the data to the C server
TCPClient = tcpip('192.168.1.2', 8080, 'NetworkRole', 'client');
set(TCPClient,'OutputBufferSize', 1464);
% 1464 is total number of bytes of the struct to be sent
% to the C server.
set(TCPClient,'Timeout', 10);
fopen(TCPClient);
while …Run Code Online (Sandbox Code Playgroud) 我想访问在inet框架中使用移动模型的移动节点的位置和速度.我以前使用MobilityAccess.h库来使用表单中定义的方法
MobilityAccess().get(module)->getCurrentPosition()
Run Code Online (Sandbox Code Playgroud)
这种方法可用于inet 2.6框架.我需要使用更新版本inet 3.2.1,但在此版本MobilityAccess.h库中不存在或移动到其他地方.
我检查了inet 3.2.1文件夹,还有base文件夹,而不是common曾经是在文件夹中inet 2.6的文件夹mobility中src.
有没有办法让移动节点的位置inet 3.2?