Click here to Skip to main content
15,889,651 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to Access Methods and Properties of a Private Class Pin
namelkcip1-Oct-11 16:33
namelkcip1-Oct-11 16:33 
GeneralRe: How to Access Methods and Properties of a Private Class Pin
BillWoodruff1-Oct-11 18:32
professionalBillWoodruff1-Oct-11 18:32 
GeneralRe: How to Access Methods and Properties of a Private Class Pin
Dave Kreskowiak2-Oct-11 1:54
mveDave Kreskowiak2-Oct-11 1:54 
GeneralRe: How to Access Methods and Properties of a Private Class Pin
BobJanova2-Oct-11 22:28
BobJanova2-Oct-11 22:28 
GeneralRe: How to Access Methods and Properties of a Private Class Pin
namelkcip5-Oct-11 16:56
namelkcip5-Oct-11 16:56 
AnswerRe: How to Access Methods and Properties of a Private Class Pin
PIEBALDconsult1-Oct-11 4:01
mvePIEBALDconsult1-Oct-11 4:01 
QuestionReceiving Data on Socket Class Pin
Richard Andrew x6430-Sep-11 13:23
professionalRichard Andrew x6430-Sep-11 13:23 
AnswerRe: Receiving Data on Socket Class Pin
André Kraak30-Sep-11 13:48
André Kraak30-Sep-11 13:48 
If you read the sample supplied with the document of Socket.BeginReceive Method[^] you will notice that the size specified is the size of the buffer passed to the function. So this size has no relation with the amount of bytes waiting to be received.
In the callback function you determine if all the data has been received or whether there is any more data. If there is more data you call BeginReceive again.

So to answer your question directly when 199 bytes are waiting and you pass a buffer of 200 bytes the receive will complete.
If you had used a buffer of 100 bytes you would have needed to perform two receives to get all the bytes. This means that you would have to put the two receives together in a larger buffer.

I hope I clarified it for you.
0100000101101110011001000111001011101001

GeneralRe: Receiving Data on Socket Class Pin
Richard Andrew x6430-Sep-11 14:23
professionalRichard Andrew x6430-Sep-11 14:23 
QuestionGridView Template Field Value Pin
jashimu30-Sep-11 10:01
jashimu30-Sep-11 10:01 
AnswerRe: GridView Template Field Value Pin
Eddy Vluggen30-Sep-11 11:26
professionalEddy Vluggen30-Sep-11 11:26 
AnswerRe: GridView Template Field Value Pin
Perić Željko6-Oct-11 3:36
professionalPerić Željko6-Oct-11 3:36 
QuestionSettings/reading files attributes Pin
devvvy30-Sep-11 0:07
devvvy30-Sep-11 0:07 
AnswerRe: Settings/reading files attributes Pin
Pete O'Hanlon30-Sep-11 0:44
mvePete O'Hanlon30-Sep-11 0:44 
QuestionConstructing a Generic Class from several similar classes Pin
Wayne Gaylard29-Sep-11 23:21
professionalWayne Gaylard29-Sep-11 23:21 
AnswerRe: Constructing a Generic Class from several similar classes Pin
Pete O'Hanlon29-Sep-11 23:50
mvePete O'Hanlon29-Sep-11 23:50 
GeneralRe: Constructing a Generic Class from several similar classes Pin
Wayne Gaylard30-Sep-11 1:10
professionalWayne Gaylard30-Sep-11 1:10 
AnswerRe: Constructing a Generic Class from several similar classes Pin
lukeer30-Sep-11 1:21
lukeer30-Sep-11 1:21 
GeneralRe: Constructing a Generic Class from several similar classes Pin
Wayne Gaylard30-Sep-11 1:48
professionalWayne Gaylard30-Sep-11 1:48 
GeneralRe: Constructing a Generic Class from several similar classes Pin
lukeer30-Sep-11 2:55
lukeer30-Sep-11 2:55 
AnswerRe: Constructing a Generic Class from several similar classes Pin
BobJanova30-Sep-11 2:29
BobJanova30-Sep-11 2:29 
AnswerRe: Constructing a Generic Class from several similar classes Pin
Luc Pattyn30-Sep-11 2:40
sitebuilderLuc Pattyn30-Sep-11 2:40 
QuestionHow to use TextBoxRenderer in usercontrol Pin
Arjen H.29-Sep-11 21:11
Arjen H.29-Sep-11 21:11 
AnswerRe: How to use TextBoxRenderer in usercontrol Pin
Pete O'Hanlon29-Sep-11 22:31
mvePete O'Hanlon29-Sep-11 22:31 
GeneralRe: How to use TextBoxRenderer in usercontrol Pin
Arjen H.29-Sep-11 23:03
Arjen H.29-Sep-11 23:03 

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.