Click here to Skip to main content
15,888,984 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to get md5 value or alike from arraylist? Pin
Richard MacCutchan10-Oct-09 5:53
mveRichard MacCutchan10-Oct-09 5:53 
GeneralRe: How to get md5 value or alike from arraylist? Pin
lvq68410-Oct-09 5:56
lvq68410-Oct-09 5:56 
GeneralRe: How to get md5 value or alike from arraylist? Pin
Richard MacCutchan10-Oct-09 6:18
mveRichard MacCutchan10-Oct-09 6:18 
GeneralRe: How to get md5 value or alike from arraylist? Pin
lvq68410-Oct-09 6:31
lvq68410-Oct-09 6:31 
GeneralRe: How to get md5 value or alike from arraylist? Pin
Xmen Real 10-Oct-09 20:26
professional Xmen Real 10-Oct-09 20:26 
AnswerRe: How to get md5 value or alike from arraylist? Pin
Luc Pattyn10-Oct-09 11:02
sitebuilderLuc Pattyn10-Oct-09 11:02 
GeneralRe: How to get md5 value or alike from arraylist? Pin
lvq68410-Oct-09 12:26
lvq68410-Oct-09 12:26 
GeneralRe: How to get md5 value or alike from arraylist? Pin
Luc Pattyn10-Oct-09 12:45
sitebuilderLuc Pattyn10-Oct-09 12:45 
OK, so it seems to be a single producer multi-consumer situation.

This is what I would do:

- on the server create a class that holds the collection (ArrayList, generic List, whatever), and organizes a version number; every addition/removal/modification in the collection should increment the version number; that is why you need your own class, so nothing can change the collection without affecting the version number.
- on each client, whenever relevant, ask the server for its version number and compare with the local version number; when different, go fetch the latest copy of the collection

Possible refinement, depends on the frequency and multiplicity of the changes:
- on the server, keep a list of changes to go from version N to N+1
- on the client, when the versions don't match, ask the differences from local version to official version, and apply them one by one.

Alternative refinement:
- split the collection in smaller collections, give them each a version number, and go fetch the smaller collection you need when it is outdated.

Smile | :)

Luc Pattyn

I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages

Local announcement (Antwerp region): Lange Wapper? Neen!


GeneralRe: How to get md5 value or alike from arraylist? Pin
lvq68410-Oct-09 21:52
lvq68410-Oct-09 21:52 
QuestionDatabase build in c# Pin
JollyMansArt10-Oct-09 5:39
JollyMansArt10-Oct-09 5:39 
AnswerRe: Database build in c# Pin
Henry Minute10-Oct-09 5:57
Henry Minute10-Oct-09 5:57 
AnswerRe: Database build in c# Pin
Md. Marufuzzaman10-Oct-09 5:57
professionalMd. Marufuzzaman10-Oct-09 5:57 
QuestionRe: Database build in c# Pin
JollyMansArt10-Oct-09 6:34
JollyMansArt10-Oct-09 6:34 
AnswerRe: Database build in c# Pin
Md. Marufuzzaman10-Oct-09 6:50
professionalMd. Marufuzzaman10-Oct-09 6:50 
AnswerRe: Database build in c# Pin
Mycroft Holmes10-Oct-09 12:53
professionalMycroft Holmes10-Oct-09 12:53 
QuestionWhy I can send only one string to server-TCP Pin
Aljaz11110-Oct-09 4:10
Aljaz11110-Oct-09 4:10 
AnswerRe: Why I can send only one string to server-TCP Pin
Luc Pattyn10-Oct-09 5:29
sitebuilderLuc Pattyn10-Oct-09 5:29 
GeneralRe: Why I can send only one string to server-TCP Pin
Aljaz11110-Oct-09 6:12
Aljaz11110-Oct-09 6:12 
GeneralRe: Why I can send only one string to server-TCP Pin
Luc Pattyn10-Oct-09 6:17
sitebuilderLuc Pattyn10-Oct-09 6:17 
GeneralRe: Why I can send only one string to server-TCP Pin
Aljaz11110-Oct-09 7:34
Aljaz11110-Oct-09 7:34 
Question[Message Deleted] Pin
Fred 3410-Oct-09 4:03
Fred 3410-Oct-09 4:03 
AnswerRe: useful icon for developing desktop application Pin
Md. Marufuzzaman10-Oct-09 4:25
professionalMd. Marufuzzaman10-Oct-09 4:25 
QuestionDon't convert to the nearest decimal Pin
Etienne_12310-Oct-09 3:48
Etienne_12310-Oct-09 3:48 
AnswerRe: Don't convert to the nearest decimal Pin
Luc Pattyn10-Oct-09 3:53
sitebuilderLuc Pattyn10-Oct-09 3:53 
GeneralRe: Don't convert to the nearest decimal Pin
Etienne_12310-Oct-09 3:58
Etienne_12310-Oct-09 3:58 

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.