Click here to Skip to main content
15,914,070 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to Transfer xml file from remote server to another Pin
Member 1265997911-May-17 17:28
Member 1265997911-May-17 17:28 
GeneralRe: How to Transfer xml file from remote server to another Pin
dlhale11-May-17 19:05
dlhale11-May-17 19:05 
GeneralRe: How to Transfer xml file from remote server to another Pin
Member 1265997911-May-17 19:40
Member 1265997911-May-17 19:40 
GeneralRe: How to Transfer xml file from remote server to another Pin
Richard MacCutchan11-May-17 21:09
mveRichard MacCutchan11-May-17 21:09 
Questionnotification text click event Pin
Member 1319194310-May-17 6:02
Member 1319194310-May-17 6:02 
AnswerRe: notification text click event Pin
NotPolitcallyCorrect10-May-17 6:10
NotPolitcallyCorrect10-May-17 6:10 
AnswerRe: notification text click event Pin
Gerry Schmitz10-May-17 6:57
mveGerry Schmitz10-May-17 6:57 
AnswerRe: notification text click event Pin
OriginalGriff10-May-17 8:03
mveOriginalGriff10-May-17 8:03 
QuestionRe: notification text click event Pin
CHill6010-May-17 23:26
mveCHill6010-May-17 23:26 
AnswerRe: notification text click event Pin
John C Rayan11-May-17 5:52
professionalJohn C Rayan11-May-17 5:52 
QuestionC# windows application system and cloud Pin
Zeyad Jalil9-May-17 23:41
professionalZeyad Jalil9-May-17 23:41 
AnswerRe: C# windows application system and cloud Pin
Dave Kreskowiak10-May-17 2:35
mveDave Kreskowiak10-May-17 2:35 
AnswerRe: C# windows application system and cloud Pin
Afzaal Ahmad Zeeshan10-May-17 5:31
professionalAfzaal Ahmad Zeeshan10-May-17 5:31 
QuestionC# Network and streams Pin
TheTrigger9-May-17 11:12
TheTrigger9-May-17 11:12 
AnswerRe: C# Network and streams Pin
Bernhard Hiller9-May-17 21:30
Bernhard Hiller9-May-17 21:30 
GeneralRe: C# Network and streams Pin
TheTrigger10-May-17 2:26
TheTrigger10-May-17 2:26 
GeneralRe: C# Network and streams Pin
Dave Kreskowiak10-May-17 2:38
mveDave Kreskowiak10-May-17 2:38 
GeneralRe: C# Network and streams Pin
TheTrigger10-May-17 2:52
TheTrigger10-May-17 2:52 
GeneralRe: C# Network and streams Pin
Dave Kreskowiak10-May-17 4:31
mveDave Kreskowiak10-May-17 4:31 
GeneralRe: C# Network and streams Pin
TheTrigger10-May-17 5:48
TheTrigger10-May-17 5:48 
GeneralRe: C# Network and streams Pin
Dave Kreskowiak10-May-17 6:41
mveDave Kreskowiak10-May-17 6:41 
GeneralRe: C# Network and streams Pin
TheTrigger10-May-17 9:12
TheTrigger10-May-17 9:12 
GeneralRe: C# Network and streams Pin
Dave Kreskowiak10-May-17 11:52
mveDave Kreskowiak10-May-17 11:52 
Normally, I would start with a message delineation marker, say 3 bytes of 'F0', then a 32-bit message length, then then message. The checksum is options, but if it's used, that would be supplied after the message length and before the message. Typically, the message is going to be a variable length so it should show up last.
|Start of Message|Length in bytes|CheckSum|Message bytes...|
|    F0 F0 F0    |  00 00 00 1A  |   F6   |data bytes...   |


You don't get it. This may just fix your message loss because as your code stands right now, since you don't have any way of knowing when a message begins and ends, you have no way of knowing if the data you deserialize is valid! You could be deserializing the end bytes from the last message combined with the beginning bytes of the next message thinking it's valid when it's not.
System.ItDidntWorkException: Something didn't work as expected.

A guide to posting questions on CodeProject

Click this: Asking questions is a skill.
Seriously, do it.

Dave Kreskowiak

GeneralRe: C# Network and streams Pin
TheTrigger10-May-17 22:48
TheTrigger10-May-17 22:48 
AnswerRe: C# Network and streams Pin
Gerry Schmitz10-May-17 5:00
mveGerry Schmitz10-May-17 5:00 

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.