<alliteration>Buffers are baffling to me.</alliteration>
I understand the concept of buffers. You put data into a buffer, send it to the recipient, that data goes into a buffer, the data is read from it.
Now then, it's rather difficult to explain my question. I know how to use buffers, but I'd like to know more.
I've read countless articles on vb.net networking, most by microsoft, but some questions remain. Here are some specific questions maybe someone can answer for me.
Why does the buffersize matter? If the size is to large, will vb attempt to send all of the data at once or split it up? I've heard reccommended buffer sizes of about 2K up to even 32K !
If data is split up at all when transfering, when vb says i've received data, is it all of the data that the client originally sent, or just what it's received so far?
In microsoft's example of a chat app, the receiver waited for a line feed before processing. However, I couldn't tell if the sender was manually splitting up these chunks or if it sent the whole line using send, then vb split the data up.
Hopefully you can see what area of buffering I have some confusion about by these two questions. Basically, I'd like to know all of what vb.net is doing behind the scenes when I'm sending and receiving.
Please, answers to these specific questions along with any resources would be greatly appreciated.
Thanks
- Mark
I understand the concept of buffers. You put data into a buffer, send it to the recipient, that data goes into a buffer, the data is read from it.
Now then, it's rather difficult to explain my question. I know how to use buffers, but I'd like to know more.
I've read countless articles on vb.net networking, most by microsoft, but some questions remain. Here are some specific questions maybe someone can answer for me.
Why does the buffersize matter? If the size is to large, will vb attempt to send all of the data at once or split it up? I've heard reccommended buffer sizes of about 2K up to even 32K !
If data is split up at all when transfering, when vb says i've received data, is it all of the data that the client originally sent, or just what it's received so far?
In microsoft's example of a chat app, the receiver waited for a line feed before processing. However, I couldn't tell if the sender was manually splitting up these chunks or if it sent the whole line using send, then vb split the data up.
Hopefully you can see what area of buffering I have some confusion about by these two questions. Basically, I'd like to know all of what vb.net is doing behind the scenes when I'm sending and receiving.
Please, answers to these specific questions along with any resources would be greatly appreciated.
Thanks
- Mark