c# - What is difference between socket.receive(buff,0,buff.length) and socket.receive(buff, buff.length,0)?
问题描述
I'm new in socket so I don't know what it the difference between socket.receive(buff,0,buff.length) and socket.receive(buff, buff.length,0)? I used recieve method many times but don't know differences.
解决方案
我从微软网站获得了一些信息。
接收(字节 [],Int32,Int32,SocketFlags)
Receives the specified number of bytes from a bound Socket into the
specified offset position of the receive buffer, using the specified
SocketFlags.
接收(字节 [],Int32,SocketFlags)
Receives the specified number of bytes of data from a bound Socket
into a receive buffer, using the specified SocketFlags.
欲了解更多信息,请访问https://docs.microsoft.com/en-us/dotnet/api/system.net.sockets.socket.receive?view=netframework-4.8
推荐阅读
- python - 为什么区域/决策边界与 sci-kit 中使用 SVM 的多类分类重叠?
- javascript - Office.js 在表格的单个列中迭代单个单元格
- java - 如何更改 Wifi P2P 设备名称?
- google-cloud-dataflow - 从 Dataflow 2.5.0 SDK 迁移到 Beam 2.13 版本
- python-3.x - s3在计算存储桶中的对象数时超时
- vba - 在 PowerPoint 中使用单选按钮 VBA
- android - 应用被拒绝(React native android app play store 提交)
- reactjs - 使用护照和 axios 访问受保护的控制器时出现 401 未经授权的错误
- docker - 如何在 Gitlab 上要求 Docker 认证的图像?
- c# - 将大型 .txt 文件与值数组进行比较