tcpclient: slow connection 2

조회 수: 6 (최근 30일)
Zohar
Zohar 2022년 6월 3일
편집: Zohar 2022년 6월 8일
Previously
https://au.mathworks.com/matlabcentral/answers/1578545-tcpclient-slow-connection
Now, new version of matlab, and connecting to '127.0.0.1' is too slow as well:
>> echotcpip( 'on', 32313 )
>> tic; t = tcpclient( '127.0.0.1', 32313 ); toc
Elapsed time is 0.114947 seconds.

채택된 답변

Zohar
Zohar 2022년 6월 8일
편집: Zohar 2022년 6월 8일
On top of that, there's no return value (read/write), can't know if anything succeeded or the socket is valid, buggy when used with persistent/global, not sure when exceptions are thrown, and so on.
The whole thing was written by an amateur (and nothing useful from matlab support). My solution: I wrote my own c++ tcp client using mlx--easiest for simple things (but you can also write mex):
https://au.mathworks.com/matlabcentral/answers/1731480-mlx-pass-a-sparse-matrix

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Parallel Computing에 대해 자세히 알아보기

태그

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by