本文介绍了从ClientSocket读取NetworkStream.Read接收数据时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
当我收到从一个应用程序发送到另一应用程序的数据时,出现错误.一个应用程序充当服务器,并将数据发送到通过特定端口连接到服务器的客户端.
我通过clientocket发送了一些信息,当时我收到了此错误.
Hi guys,
When I receive data sent from one application to another application I get an error. One application acts as the server and sends data to the client that connected to the server on a particular port.
I sent some information via clientsocket and at that time I got this error.
"Specified argument was out of the range of valid values.Parameter name: size"
这是我的编码...
Here my coding ...
Dim bytesFrom(10024) As Byte
networkStream.Read(bytesFrom, 0, CInt(clientSocket.ReceiveBufferSize))
clientSocket.ReceiveBufferSize为505196.
我不明白这个问题.有人可以帮忙吗?
问候,
Saran.t
clientSocket.ReceiveBufferSize is 505196.
I don''t understand this problem. Can anyone help please?
Regards,
Saran.t
推荐答案
这篇关于从ClientSocket读取NetworkStream.Read接收数据时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!