Click here to Skip to main content
15,887,027 members
Home / Discussions / C#
   

C#

 
QuestionAsynchronous Response to a Synchronous TCPClient Pin
Octantis3-May-11 13:09
Octantis3-May-11 13:09 
AnswerRe: Asynchronous Response to a Synchronous TCPClient Pin
Luc Pattyn3-May-11 13:25
sitebuilderLuc Pattyn3-May-11 13:25 
AnswerRe: Asynchronous Response to a Synchronous TCPClient Pin
BobJanova4-May-11 1:53
BobJanova4-May-11 1:53 
AnswerRe: Asynchronous Response to a Synchronous TCPClient Pin
jschell4-May-11 8:37
jschell4-May-11 8:37 
GeneralRe: Asynchronous Response to a Synchronous TCPClient Pin
Octantis4-May-11 9:22
Octantis4-May-11 9:22 
AnswerRe: Asynchronous Response to a Synchronous TCPClient Pin
Luc Pattyn4-May-11 15:08
sitebuilderLuc Pattyn4-May-11 15:08 
GeneralRe: Asynchronous Response to a Synchronous TCPClient Pin
jschell5-May-11 8:02
jschell5-May-11 8:02 
AnswerRe: Asynchronous Response to a Synchronous TCPClient Pin
Octantis5-May-11 10:11
Octantis5-May-11 10:11 
The answer as expected did point to the sender and his using of a throw away thread to send a single message. Now instead I drop those messages into a queue and then send them off within its own separate thread. Problem solved.

You guys did bring up the question of unsafe read practices. Specifically when things would get out of sync. I understand what you mean by an errant byte being assumed as a string or a size. In general how do you guys handle that? Put in super unique character strings like #$$# with the next following character being the size and then seeking the buffer looking for those values? The TCP layer should ensure that the data shows up (eventually) unmolested. So something like that would only serve to hide errors in the sending code and not something outside your realm of control.

I'll mark this problem as solved. Once again thanks for the help.
GeneralRe: Asynchronous Response to a Synchronous TCPClient Pin
jschell6-May-11 10:48
jschell6-May-11 10:48 
QuestionHow to load Arabic File name Pin
raushan_93-May-11 8:41
raushan_93-May-11 8:41 
AnswerRe: How to load Arabic File name Pin
Pete O'Hanlon3-May-11 9:02
mvePete O'Hanlon3-May-11 9:02 
QuestionC# and Power Point Pin
PDTUM3-May-11 7:55
PDTUM3-May-11 7:55 
AnswerRe: C# and Power Point Pin
Pete O'Hanlon3-May-11 9:36
mvePete O'Hanlon3-May-11 9:36 
AnswerRe: C# and Power Point Pin
PDTUM3-May-11 13:01
PDTUM3-May-11 13:01 
GeneralRe: C# and Power Point Pin
wizardzz4-May-11 10:01
wizardzz4-May-11 10:01 
QuestionConnection String problem Pin
si_693-May-11 6:01
si_693-May-11 6:01 
AnswerRe: Connection String problem Pin
Ian Shlasko3-May-11 6:17
Ian Shlasko3-May-11 6:17 
AnswerRe: Connection String problem Pin
Pete O'Hanlon3-May-11 6:18
mvePete O'Hanlon3-May-11 6:18 
AnswerRe: Connection String problem Pin
DaveAuld3-May-11 6:20
professionalDaveAuld3-May-11 6:20 
AnswerRe: Connection String problem Pin
Luc Pattyn3-May-11 6:28
sitebuilderLuc Pattyn3-May-11 6:28 
GeneralRe: Connection String problem Pin
Pete O'Hanlon3-May-11 6:44
mvePete O'Hanlon3-May-11 6:44 
GeneralRe: Connection String problem Pin
Luc Pattyn3-May-11 6:51
sitebuilderLuc Pattyn3-May-11 6:51 
Questiona try inside another Pin
Ali Al Omairi(Abu AlHassan)3-May-11 0:44
professionalAli Al Omairi(Abu AlHassan)3-May-11 0:44 
AnswerRe: a try inside another Pin
Rick van Woudenberg3-May-11 1:07
Rick van Woudenberg3-May-11 1:07 
AnswerRe: a try inside another Pin
Luc Pattyn3-May-11 1:12
sitebuilderLuc Pattyn3-May-11 1:12 

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.