Can you send a larger file than SendBufferSize through TcpClient?

I am experimenting with Tcp connections in .NET, and I would like to send some data that is larger than the proportion of SendBufferSize of the TcpClient object. Is it possible to send data simply by writing to a network stream, or do I need to cut them into pices and send them, and then create it again?

+3
source share
2 answers

From MSDN :

If the network buffer is less than the amount of data that you provide to the Write method, for each call that you execute the Write method, several send operations over the network will be performed.

Write, TcpClient .

+4
+1

Source: https://habr.com/ru/post/1751300/


All Articles