Click here to Skip to main content
15,918,471 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: Unique number from two numbers Pin
Luc Pattyn15-May-10 6:00
sitebuilderLuc Pattyn15-May-10 6:00 
GeneralRe: Unique number from two numbers Pin
CPallini18-May-10 1:52
mveCPallini18-May-10 1:52 
GeneralRe: Unique number from two numbers Pin
CPallini17-May-10 22:37
mveCPallini17-May-10 22:37 
GeneralRe: Unique number from two numbers Pin
theCPkid18-May-10 1:39
theCPkid18-May-10 1:39 
GeneralRe: Unique number from two numbers Pin
CPallini18-May-10 1:45
mveCPallini18-May-10 1:45 
QuestionSocket message(frame) pattern matching Pin
Hamed Musavi13-May-10 7:42
Hamed Musavi13-May-10 7:42 
AnswerRe: Socket message(frame) pattern matching Pin
Luc Pattyn13-May-10 7:55
sitebuilderLuc Pattyn13-May-10 7:55 
GeneralRe: Socket message(frame) pattern matching Pin
Hamed Musavi13-May-10 8:21
Hamed Musavi13-May-10 8:21 
Thank you so much for your very fast reply. It's very kind of you.

Luc Pattyn wrote:
If you need syncing capabilities (e.g. because some bytes may get lost underway)


This is the exact reason for what I'm seeking. If byte array I receive contains broken message at the beginning then I need to find next packet and ignore what's before.



Luc Pattyn wrote:
you should start with a fixed heade


Is this like a beginning flag(like preamble in Ethernet frames)? If it is, It's not possible for me to use this solution since it's possible that the data field contains those(flag) byte sequence either, so message header shall be big enough to decrease such probability and in most systems that I'm working with, too much overhead is not accepted.



Luc Pattyn wrote:
If you need syncing capabilities

This looks like what I need to search. I'll take a closer look at the syncing mechanisms to see if there's any better scape way. Thank you for this help. Smile | :)

"I hope you live a life you're proud of. If you find that you're not, I hope you have the strength to start all over again."    
 - I wish I knew who is this quote from
 

GeneralRe: Socket message(frame) pattern matching Pin
Luc Pattyn13-May-10 8:31
sitebuilderLuc Pattyn13-May-10 8:31 
GeneralRe: Socket message(frame) pattern matching Pin
Hamed Musavi13-May-10 8:55
Hamed Musavi13-May-10 8:55 
GeneralRe: Socket message(frame) pattern matching Pin
Luc Pattyn13-May-10 9:05
sitebuilderLuc Pattyn13-May-10 9:05 
GeneralRe: Socket message(frame) pattern matching Pin
Hamed Musavi13-May-10 9:25
Hamed Musavi13-May-10 9:25 
GeneralRe: Socket message(frame) pattern matching Pin
Luc Pattyn13-May-10 9:34
sitebuilderLuc Pattyn13-May-10 9:34 
GeneralRe: Socket message(frame) pattern matching Pin
Hamed Musavi13-May-10 9:39
Hamed Musavi13-May-10 9:39 
QuestionNeed of Decision Tree Implementation Pin
Radiit6-May-10 3:05
Radiit6-May-10 3:05 
Questionfind a sulution! Pin
wbgxx3-May-10 3:59
wbgxx3-May-10 3:59 
AnswerRe: find a sulution! Pin
Kevin Drzycimski3-May-10 4:06
Kevin Drzycimski3-May-10 4:06 
GeneralRe: find a sulution! Pin
wbgxx3-May-10 4:12
wbgxx3-May-10 4:12 
GeneralRe: find a sulution! Pin
Luc Pattyn3-May-10 4:13
sitebuilderLuc Pattyn3-May-10 4:13 
GeneralRe: find a sulution! Pin
wbgxx3-May-10 4:15
wbgxx3-May-10 4:15 
AnswerRe: find a solution! Pin
theCPkid6-May-10 2:21
theCPkid6-May-10 2:21 
GeneralRe: find a solution! [modified] Pin
Radhakrishnan G.18-May-10 3:30
Radhakrishnan G.18-May-10 3:30 
GeneralRe: find a solution! Pin
talazz12-May-11 2:53
talazz12-May-11 2:53 
QuestionSimulating movement Pin
Code-o-mat24-Apr-10 5:49
Code-o-mat24-Apr-10 5:49 
AnswerRe: Simulating movement Pin
Software_Developer24-Apr-10 10:12
Software_Developer24-Apr-10 10: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.