c# - How to set an automatic BufferSize? -


i'm using socket.beginreceive method in order receive data connected clients. however, messages send may vary in size. example, 1 message may 100,000 bytes in size , other may 3 bytes in size, , 100,000 bytes message sent! there way of setting thebuffersize value automatic value usage of socket.receive?

set buffer size maximum unit transmission (mtu) size of ip packet (64 kb). never exceeds size because larger messages fragmented transmitted easier.


Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -