A simple UDP communications application

Sends/receives UDP packets using Matlab's Java interface.
14,6K Downloads
Aktualisiert 22 Jul 2021

Lizenz anzeigen

UDP packets are used to send data from one computer to another over a network or from one application to another within a single computer.
The judp.m program uses Matlab's ability to call Java code to enable it to send and/or receive UDP packets. One Matlab session can communicate with another Matlab session (on the same machine or over the network) or it can communicate with a completely different program (again, on the same machine or over the network).

Zitieren als

Kevin Bartlett (2024). A simple UDP communications application (https://www.mathworks.com/matlabcentral/fileexchange/24525-a-simple-udp-communications-application), MATLAB Central File Exchange. Abgerufen .

Kompatibilität der MATLAB-Version
Erstellt mit R2009a
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Quellenangaben

Inspiriert von: TCP/IP Socket Communications in MATLAB

Community Treasure Hunt

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

Start Hunting!
Version Veröffentlicht Versionshinweise
1.2.0.1

At suggestion of Dennie Craane, added ability to specify a source port number in addition to the target port number when sending packets.

1.2.0.0

Forgot to attach new version of judp.m on last update.

1.1.0.0

Added socket.setReuseAddress(1) in order to make reuse of port numbers more reliable after pressing ctrl-C (thanks to Adam Becker for the suggestion). Also tidied up some MLint messages.

1.0.0.0