0
接受dgram,字节和端点的方法存在UdpClient.Send过载。为什么UdpClient.Send中有'bytes'参数?
public int Send(byte[] dgram, int bytes, IPEndPoint endPoint)
在MSDN文档中,'bytes'参数的描述如下。
字节
类型:System.Int32
在数据报的字节数。
为什么会有'字节'参数?难道不可能找出发送方法内的dgram数组中的字节数吗?