I have connected to a host, but how do I find the correct buffer size?
(The Buffer is currently set to 8k (8192))
Code:Dim webget As New Net.Sockets.Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp) webget.Connect(host, port) webget.Send(data, 0, data.Length, SocketFlags.None) Dim rData(8192) As Byte webget.Receive(rData, rData.Length, 0)




Reply With Quote