Dynamic port numbers with UDP()

2 Ansichten (letzte 30 Tage)
MPan
MPan am 8 Sep. 2020
Bearbeitet: MPan am 8 Sep. 2020
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

Antworten (0)

Produkte


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by