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
Post a Comment