Click here to Skip to main content
15,921,454 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: Exposing a property of a nested class to .Net VB, C# etc. Pin
stempsoft12-Feb-09 15:20
stempsoft12-Feb-09 15:20 
GeneralRe: Exposing a property of a nested class to .Net VB, C# etc. Pin
N a v a n e e t h12-Feb-09 16:27
N a v a n e e t h12-Feb-09 16:27 
Questionwhich is the best method to send data to clients, without a request from client Pin
naveen_bij11-Feb-09 22:36
naveen_bij11-Feb-09 22:36 
AnswerRe: which is the best method to send data to clients, without a request from client Pin
led mike12-Feb-09 4:41
led mike12-Feb-09 4:41 
GeneralRe: which is the best method to send data to clients, without a request from client Pin
naveen_bij12-Feb-09 18:05
naveen_bij12-Feb-09 18:05 
GeneralRe: which is the best method to send data to clients, without a request from client Pin
Luc Pattyn12-Feb-09 4:47
sitebuilderLuc Pattyn12-Feb-09 4:47 
GeneralRe: which is the best method to send data to clients, without a request from client Pin
naveen_bij12-Feb-09 18:31
naveen_bij12-Feb-09 18:31 
GeneralRe: which is the best method to send data to clients, without a request from client Pin
Luc Pattyn13-Feb-09 9:00
sitebuilderLuc Pattyn13-Feb-09 9:00 
Hi,

there are some problems with multicast:
- the sender does not know how many listeners there are
- the sender does not expect a response
- the receivers have no way to respond, to inform things went well, or wrong...
- the receivers may have missed it (being off, or just not listening); if so, no one notices.

So if it is essential that your clients immediately switch over to the new settings, I don't think multicasts are an option. I suggest you close the existing connections (maybe by returning an error on all requests other than CONNECT) and tell the clients that try and
(re)connect that new settings are available.

An easy way to manage versions/settings/... is by adding one byte to every message sent by clients, I would call it the generation number. The server would then refuse all requests with a bad generation number except "give me valid settings", and return an error saying "bad generation"; the client would then close the connection, ask for the latest settings (which works outside a session, and no matter what the generation number is), then
start a new session. And of course every time the server has new settings it simply increments the generation number.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets


AnswerRe: which is the best method to send data to clients, without a request from client Pin
tyr200023-Feb-09 1:20
tyr200023-Feb-09 1:20 
GeneralRe: which is the best method to send data to clients, without a request from client Pin
naveen_bij23-Feb-09 20:09
naveen_bij23-Feb-09 20:09 
GeneralRe: which is the best method to send data to clients, without a request from client Pin
tyr200025-Feb-09 1:21
tyr200025-Feb-09 1:21 
GeneralRe: which is the best method to send data to clients, without a request from client Pin
naveen_bij25-Feb-09 3:53
naveen_bij25-Feb-09 3:53 
GeneralRe: which is the best method to send data to clients, without a request from client [modified] Pin
tyr200025-Feb-09 13:07
tyr200025-Feb-09 13:07 
GeneralRe: which is the best method to send data to clients, without a request from client Pin
naveen_bij28-Feb-09 23:01
naveen_bij28-Feb-09 23:01 
QuestionAssenbly referencing problem Pin
KASR111-Feb-09 19:00
KASR111-Feb-09 19:00 
AnswerRe: Assenbly referencing problem Pin
led mike12-Feb-09 4:29
led mike12-Feb-09 4:29 
GeneralRe: Assenbly referencing problem Pin
KASR112-Feb-09 18:25
KASR112-Feb-09 18:25 
GeneralRe: Assenbly referencing problem Pin
led mike13-Feb-09 5:35
led mike13-Feb-09 5:35 
GeneralRe: Assenbly referencing problem Pin
KASR115-Feb-09 17:52
KASR115-Feb-09 17:52 
Questionplease help me to work folderbrowser dialog in asp.net Pin
sivasampathkumar10-Feb-09 22:09
sivasampathkumar10-Feb-09 22:09 
AnswerRe: please help me to work folderbrowser dialog in asp.net Pin
George L. Jackson11-Feb-09 8:11
George L. Jackson11-Feb-09 8:11 
QuestionDeclare an array of structures containing an array into a Form's class. Pin
chaloens10-Feb-09 5:46
chaloens10-Feb-09 5:46 
AnswerRe: Declare an array of structures containing an array into a Form's class. Pin
Mark Salsbery10-Feb-09 6:26
Mark Salsbery10-Feb-09 6:26 
GeneralRe: Declare an array of structures containing an array into a Form's class. Pin
led mike10-Feb-09 6:57
led mike10-Feb-09 6:57 
QuestionC++/CLI Beginner Questions Pin
TripShock10-Feb-09 3:07
TripShock10-Feb-09 3:07 

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.