Click here to Skip to main content
15,910,787 members
Home / Discussions / C#
   

C#

 
GeneralRe: Interview Questions Pin
CPallini1-Jun-07 0:41
mveCPallini1-Jun-07 0:41 
AnswerRe: Interview Questions Pin
Rudolf Jan1-Jun-07 0:27
Rudolf Jan1-Jun-07 0:27 
GeneralRe: Interview Questions Pin
BINOVAR1-Jun-07 0:31
BINOVAR1-Jun-07 0:31 
AnswerRe: Interview Questions Pin
Guffa1-Jun-07 0:31
Guffa1-Jun-07 0:31 
GeneralRe: Interview Questions Pin
BINOVAR1-Jun-07 0:34
BINOVAR1-Jun-07 0:34 
QuestionFtpWebRequest Pin
Stevo Z31-May-07 23:15
Stevo Z31-May-07 23:15 
QuestionHopefully my last string interop issue Pin
Russell Jones31-May-07 22:47
Russell Jones31-May-07 22:47 
QuestionReading from a socket Pin
Diego F.31-May-07 22:45
Diego F.31-May-07 22:45 
Hello. I have a problem while reading bytes from a socket.

According to my test, it seems that the buffer maximum size is 8192 bytes. Then, I use a byte array with that size to read from the buffer. If the send data size is 8192 or less, it works ok.

But, if I send more that 8192, let's say 10000 bytes, the first time I read from the buffer I get 8192, and the second, instead of 1808 bytes, it reads 8192 again!!!

Isn't the buffer emptied after the reading?

Regards,

Diego F.

AnswerRe: Reading from a socket Pin
Le centriste1-Jun-07 2:37
Le centriste1-Jun-07 2:37 
GeneralRe: Reading from a socket Pin
Diego F.4-Jun-07 2:03
Diego F.4-Jun-07 2:03 
GeneralRe: Reading from a socket Pin
Le centriste4-Jun-07 2:38
Le centriste4-Jun-07 2:38 
GeneralForgot to mention Pin
Le centriste4-Jun-07 2:54
Le centriste4-Jun-07 2:54 
GeneralRe: Forgot to mention Pin
Diego F.4-Jun-07 7:35
Diego F.4-Jun-07 7:35 
GeneralRe: Reading from a socket Pin
Diego F.4-Jun-07 4:17
Diego F.4-Jun-07 4:17 
GeneralRe: Reading from a socket Pin
Le centriste4-Jun-07 6:51
Le centriste4-Jun-07 6:51 
QuestionUML generator Pin
Fatbuddha 131-May-07 22:40
Fatbuddha 131-May-07 22:40 
AnswerRe: UML generator Pin
Paul Conrad1-Jun-07 13:33
professionalPaul Conrad1-Jun-07 13:33 
Questionc# mouse hooks Pin
Mr Withers31-May-07 22:31
Mr Withers31-May-07 22:31 
QuestionData type conversions problem Pin
Michael10131-May-07 22:26
Michael10131-May-07 22:26 
AnswerRe: Data type conversions problem Pin
Martin#31-May-07 22:43
Martin#31-May-07 22:43 
AnswerRe: Data type conversions problem Pin
Christian Graus31-May-07 23:06
protectorChristian Graus31-May-07 23:06 
GeneralRe: Data type conversions problem Pin
Michael1013-Jun-07 13:04
Michael1013-Jun-07 13:04 
QuestionHow to show and hide a layer in a Visio shape Pin
asithabk31-May-07 21:37
asithabk31-May-07 21:37 
QuestionBeginInit() and EndIinit() performance Pin
Tavbi31-May-07 21:20
Tavbi31-May-07 21:20 
AnswerRe: BeginInit() and EndIinit() performance Pin
Martin#31-May-07 21:40
Martin#31-May-07 21:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.