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

C#

 
GeneralRe: Inserting the same textbox in multiple controls Pin
Heath Stewart19-Dec-03 8:27
protectorHeath Stewart19-Dec-03 8:27 
GeneralDataGrid, don't want the last row (new record), how to remove Pin
Member 61691919-Dec-03 7:29
Member 61691919-Dec-03 7:29 
GeneralRe: DataGrid, don't want the last row (new record), how to remove Pin
sthect19-Dec-03 8:00
sthect19-Dec-03 8:00 
GeneralRe: DataGrid, don't want the last row (new record), how to remove Pin
Member 61691919-Dec-03 9:17
Member 61691919-Dec-03 9:17 
GeneralRe: DataGrid, don't want the last row (new record), how to remove Pin
dubor9-Jan-04 6:34
dubor9-Jan-04 6:34 
GeneralParsing an LDIF file without using ldifde or Active Directory Pin
sonicflame19-Dec-03 6:10
sonicflame19-Dec-03 6:10 
GeneralEntity point-to-point communication...suggestions Pin
LongRange.Shooter19-Dec-03 5:11
LongRange.Shooter19-Dec-03 5:11 
GeneralRe: Entity point-to-point communication...suggestions Pin
Heath Stewart19-Dec-03 6:13
protectorHeath Stewart19-Dec-03 6:13 
You should take a look at .NET Remoting. You get a lot more flexibility, and you could devise a system where the remoting server (could even be in your same process) keeps track of registered clients and sends commands to the right clients based on Type information (judging by your description) and remote method calls. There is some more complexity involved than simple socket programming, but you get a LOT more flexibility because you can chain message handlers (objects that act on message data or even change that message data) and do many other things (like even compressing the message data using a compression sync handler to and from a remote object).

There are several good articles here on CP, and you should get a book like MS Press's ".NET Remoting", which is a good beginner and intermediate book about .NET Remoting.

This way, your threads don't have to keep references to each other and can instead use a broker system through Remoting. You could also broker objects using ContextBoundObject classes, or even with a normal class, but using either remoting or a ContextBoundObject lets you capture messages (for method calls, return messages, etc.) before they are received or sent by the client or server.

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralRe: Entity point-to-point communication...suggestions Pin
LongRange.Shooter19-Dec-03 7:14
LongRange.Shooter19-Dec-03 7:14 
GeneralRe: Entity point-to-point communication...suggestions Pin
Heath Stewart19-Dec-03 8:26
protectorHeath Stewart19-Dec-03 8:26 
GeneralRe: Entity point-to-point communication...suggestions Pin
LongRange.Shooter22-Dec-03 2:34
LongRange.Shooter22-Dec-03 2:34 
GeneralRe: Entity point-to-point communication...suggestions Pin
Giles19-Dec-03 8:59
Giles19-Dec-03 8:59 
GeneralRe: Entity point-to-point communication...suggestions Pin
LongRange.Shooter22-Dec-03 9:24
LongRange.Shooter22-Dec-03 9:24 
GeneralCopy the structure of an Access table Pin
Anonymous19-Dec-03 4:53
Anonymous19-Dec-03 4:53 
GeneralStored Procedure Return Value Pin
Mazdak19-Dec-03 4:16
Mazdak19-Dec-03 4:16 
GeneralRe: Stored Procedure Return Value Pin
Heath Stewart19-Dec-03 5:03
protectorHeath Stewart19-Dec-03 5:03 
GeneralRe: Stored Procedure Return Value Pin
Mazdak19-Dec-03 5:59
Mazdak19-Dec-03 5:59 
GeneralRe: Stored Procedure Return Value Pin
Heath Stewart19-Dec-03 6:06
protectorHeath Stewart19-Dec-03 6:06 
GeneralRe: Print word document without opening it. Pin
Heath Stewart19-Dec-03 4:59
protectorHeath Stewart19-Dec-03 4:59 
QuestionHow to winsdows service Programing???? Pin
h_wing19-Dec-03 3:46
h_wing19-Dec-03 3:46 
AnswerRe: How to winsdows service Programing???? Pin
Mazdak19-Dec-03 4:21
Mazdak19-Dec-03 4:21 
QuestionHow to Socket Programing... Pin
h_wing19-Dec-03 3:16
h_wing19-Dec-03 3:16 
AnswerRe: How to Socket Programing... Pin
Jinwah19-Dec-03 3:42
Jinwah19-Dec-03 3:42 
AnswerRe: How to Socket Programing... Pin
Heath Stewart19-Dec-03 3:43
protectorHeath Stewart19-Dec-03 3:43 
Generalcreate new dial_up connection Pin
heba_zien19-Dec-03 3:15
heba_zien19-Dec-03 3:15 

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.