TCP Output Socket
An output socket that allows zero or more TCP client connections to be made.
A separate thread manages the client connections allowing for multiple clients to connect and disconnect at any time.
Not just for data communication but also useful as a debug output monitoring tool.
Usage:
output_port = 1234;
output_socket = MatlabOutputSocket(output_port);
% Write a string out
output_socket.write(int8(sprintf('Hi there how are you?\r\n')));
% Write some raw data out
output_socket.write(rand(4, 'single'));
% close socket connection
output_socket.close();
For more details and an explanation of the Java helper class see:
http://iheartmatlab.blogspot.com/2010/06/non-blocking-output-socket.html
Cita come
Rodney Thomson (2025). TCP Output Socket (https://it.mathworks.com/matlabcentral/fileexchange/27975-tcp-output-socket), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Compatibilità della piattaforma
Windows macOS LinuxCategorie
- MATLAB > Data Import and Analysis > Data Import and Export > Hardware and Network Communication > TCP/IP Communication >
- Test and Measurement > Instrument Control Toolbox > Interface-Based Instrument Communication >
Tag
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
| Versione | Pubblicato | Note della release | |
|---|---|---|---|
| 1.0.0.0 |
