Dynamic port numbers with UDP()

1 view (last 30 days)
MPan on 8 Sep 2020
Edited: MPan on 8 Sep 2020
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

Answers (0)


Find more on Data Acquisition Toolbox Supported Hardware in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by