Question:

C# ==> Socket programming ??!?!?!?1?

by  |  earlier

0 LIKES UnLike

How many bytes can i send at a time through sockets?

The reason that i'm asking this is that:

when i transfer info from the server to client it works if the text is small (1024 byte)

but when i transfer about 2048 bytes the client receives them separately and the result : ruining my xml code.

 Tags:

   Report

1 ANSWERS


  1. The amount of bytes you receive over a socket is dependent upon how the data is transmitted and how the network delivers the data.

    In most cases the data is sent in packets of a certain window size (which may or may not be broken down further as they traverse the network).  Make sure you're receive buffer is large enough to hold whatever size chunk you want (though again, the network decides what actually comes through)

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.
Unanswered Questions