TCP Output Socket

版本 1.0.0.0 (5.4 KB) 作者: Rodney Thomson
MATLAB TCP Output Socket using a Java helper class for threaded client connection management
1.3K 次下载
更新时间 2010/6/21

查看许可证

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

引用格式

Rodney Thomson (2024). TCP Output Socket (https://www.mathworks.com/matlabcentral/fileexchange/27975-tcp-output-socket), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2009a
兼容任何版本
平台兼容性
Windows macOS Linux
标签 添加标签

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0