Disable Nagle Algorithm on tcpclient
조회 수: 10 (최근 30일)
이전 댓글 표시
The tcpip function allowed a user to disable the Nagle algorithm. tcpip is being replaced by tcpclient, but I don't see the ability to disable Nagle's algorithm for tcpclient. Is it possible to disable it in MATLAB?
댓글 수: 0
답변 (1개)
Manas Meena
2020년 12월 2일
The matlabroot/toolbox/coder/rtiostream/src/rtiostreamtcpip/rtiostream_tcpip.c file shows how you can turn off Nagle's algorithm:
/* Disable Nagle's Algorithm*/
option = 1;
sockStatus = setsockopt(lFd,IPPROTO_TCP,TCP_NODELAY,(char*)&option,sizeof(option));
The code for your custom TCP/IP implementation can require modification.
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!