Click here to Skip to main content
15,907,328 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# Webservice help -- catching an event Pin
amclint5-Oct-07 9:33
amclint5-Oct-07 9:33 
GeneralRe: C# Webservice help -- catching an event Pin
amclint5-Oct-07 9:40
amclint5-Oct-07 9:40 
GeneralRe: C# Webservice help -- catching an event Pin
pmarfleet5-Oct-07 10:01
pmarfleet5-Oct-07 10:01 
GeneralRe: C# Webservice help -- catching an event Pin
amclint5-Oct-07 10:18
amclint5-Oct-07 10:18 
QuestionTCP .Begin receive Pin
captainmogo5-Oct-07 8:42
captainmogo5-Oct-07 8:42 
AnswerRe: TCP .Begin receive Pin
led mike5-Oct-07 8:48
led mike5-Oct-07 8:48 
AnswerRe: TCP .Begin receive Pin
Anthony Mushrow5-Oct-07 8:54
professionalAnthony Mushrow5-Oct-07 8:54 
AnswerRe: TCP .Begin receive Pin
pbraun7-Oct-07 7:05
pbraun7-Oct-07 7:05 
If the buffer size is not hard coded, the process will have to retrieve one byte at a time from the socket and constantly resize the incoming buffer to accommodate the byte until the message has been received. That can be very time expensive.

What can be done is on the receive side, set up a hard coded buffer size. Each time a message is received, pass that buffer up to another method that will parse the buffer copying it into a second buffer. Then the original buffer is cleared. When the next message is received, the same process happens again. Let the parsing method determine when the message is complete and further processing of the completed message is necessary. This requires some analysis of the message and how it is structured so that the receiving process can put the message back together correctly.

There are many applications out there that do the second method effectively. In fact there are some examples on this web site of both methods.

Phil

GeneralRe: TCP .Begin receive Pin
captainmogo30-Oct-07 4:58
captainmogo30-Oct-07 4:58 
Questionhow to create a application as "Organizer Work" for beginner Pin
hanght5-Oct-07 8:15
hanght5-Oct-07 8:15 
AnswerRe: how to create a application as "Organizer Work" for beginner Pin
Not Active5-Oct-07 8:41
mentorNot Active5-Oct-07 8:41 
GeneralRe: how to create a application as "Organizer Work" for beginner Pin
hanght5-Oct-07 8:52
hanght5-Oct-07 8:52 
GeneralRe: how to create a application as "Organizer Work" for beginner Pin
Christian Graus5-Oct-07 13:26
protectorChristian Graus5-Oct-07 13:26 
AnswerRe: how to create a application as "Organizer Work" for beginner Pin
Abhijit Jana6-Oct-07 1:27
professionalAbhijit Jana6-Oct-07 1:27 
Questiontexture loader problem Pin
Xmen Real 5-Oct-07 6:45
professional Xmen Real 5-Oct-07 6:45 
AnswerRe: texture loader problem Pin
Not Active5-Oct-07 6:55
mentorNot Active5-Oct-07 6:55 
GeneralRe: texture loader problem Pin
Xmen Real 5-Oct-07 6:58
professional Xmen Real 5-Oct-07 6:58 
GeneralRe: texture loader problem Pin
led mike5-Oct-07 7:15
led mike5-Oct-07 7:15 
GeneralRe: texture loader problem Pin
Xmen Real 5-Oct-07 14:18
professional Xmen Real 5-Oct-07 14:18 
GeneralRe: texture loader problem Pin
Not Active5-Oct-07 7:30
mentorNot Active5-Oct-07 7:30 
GeneralRe: texture loader problem Pin
Xmen Real 5-Oct-07 14:21
professional Xmen Real 5-Oct-07 14:21 
GeneralRe: texture loader problem Pin
Not Active5-Oct-07 15:03
mentorNot Active5-Oct-07 15:03 
GeneralRe: texture loader problem Pin
Xmen Real 5-Oct-07 15:48
professional Xmen Real 5-Oct-07 15:48 
QuestionLambda Expressions Pin
Fayu5-Oct-07 6:22
Fayu5-Oct-07 6:22 
AnswerRe: Lambda Expressions Pin
Judah Gabriel Himango5-Oct-07 6:42
sponsorJudah Gabriel Himango5-Oct-07 6:42 

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.