Dynamic port numbers with UDP()

1 次查看(过去 30 天)
MPan
MPan 2020-9-8
编辑: MPan 2020-9-8
Hi,
I have an application written in MATLAB on one PC that is communicating to a C++ application on another PC over ethernet using the udp() function in MATLAB. The C++ application sends/receives a handful of specific messages over the network with each message being allocated its own port number. I'm looking to understand if it is possible to create only one instance of the udp() function in my MATLAB script and dynamically change the port numbers when sending/receiving messages when communicating with the C++ application?
Any help is appreciated. Thanks

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Build MATLAB Interface to C++ Library 的更多信息

产品


版本

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by