写过一个 C/S 架构的程序,发现数据在传输、接收过程中存在和串口通信一样的问题:粘包、拆包。速度快了之后更加严重,网上百度知道是因为网络堵塞、延迟等原因造成的。
所以要解决这样的问题,还是要在 C 和 S 端建立通讯协议。
Warning: include(/home/bluesummergbflju3ewsauimlm6e6r/wwwroot/wp-content/plugins/wp-super-cache/wp-cache-base.php): failed to open stream: No such file or directory in /home/bluesummerebalqugewsjuvmzm2eur/wwwroot/wp-content/plugins/wp-super-cache/wp-cache.php on line 99 Warning: include(): Failed opening '/home/bluesummergbflju3ewsauimlm6e6r/wwwroot/wp-content/plugins/wp-super-cache/wp-cache-base.php' for inclusion (include_path='.:') in /home/bluesummerebalqugewsjuvmzm2eur/wwwroot/wp-content/plugins/wp-super-cache/wp-cache.php on line 99 Warning: include_once(/home/bluesummergbflju3ewsauimlm6e6r/wwwroot/wp-content/plugins/wp-super-cache/ossdl-cdn.php): failed to open stream: No such file or directory in /home/bluesummerebalqugewsjuvmzm2eur/wwwroot/wp-content/plugins/wp-super-cache/wp-cache.php on line 122 Warning: include_once(): Failed opening '/home/bluesummergbflju3ewsauimlm6e6r/wwwroot/wp-content/plugins/wp-super-cache/ossdl-cdn.php' for inclusion (include_path='.:') in /home/bluesummerebalqugewsjuvmzm2eur/wwwroot/wp-content/plugins/wp-super-cache/wp-cache.php on line 122
www.runner.ink
写过一个 C/S 架构的程序,发现数据在传输、接收过程中存在和串口通信一样的问题:粘包、拆包。速度快了之后更加严重,网上百度知道是因为网络堵塞、延迟等原因造成的。
所以要解决这样的问题,还是要在 C 和 S 端建立通讯协议。