Click here to Skip to main content
15,899,026 members
Home / Discussions / C#
   

C#

 
GeneralPrinting.. Pin
Amirjalaly10-Nov-03 5:50
Amirjalaly10-Nov-03 5:50 
GeneralRe: Printing.. Pin
Heath Stewart10-Nov-03 6:01
protectorHeath Stewart10-Nov-03 6:01 
GeneralRemoting and Events Pin
CillyMe10-Nov-03 5:08
CillyMe10-Nov-03 5:08 
GeneralRe: Remoting and Events Pin
Heath Stewart10-Nov-03 5:39
protectorHeath Stewart10-Nov-03 5:39 
GeneralRe: Remoting and Events Pin
CillyMe10-Nov-03 5:44
CillyMe10-Nov-03 5:44 
GeneralRe: Remoting and Events Pin
Heath Stewart10-Nov-03 5:51
protectorHeath Stewart10-Nov-03 5:51 
GeneralRe: Remoting and Events Pin
CillyMe10-Nov-03 14:37
CillyMe10-Nov-03 14:37 
GeneralRe: Remoting and Events Pin
Heath Stewart11-Nov-03 2:55
protectorHeath Stewart11-Nov-03 2:55 
FYI, the term is "bottleneck" - like how the neck of, say, a beer bottle gets narrower and forces larger quantities to trickle through it.

Trust me, with the proper threading, this will work. And you don't need two separate remoting objects. You really should pick up MSPress's ".NET Remoting" or Ingor Rammer's "Advanced Remoting". With a singleton, all the clients are connected to the WKO just like controls would be in the control collection of a parent control (or any collection, for that matter). The Remoting infrastructure takes care of dropping clients as they disconnect or timeout. You just need to filter the messages so that when a message is received (in the form of a struct or remotable class) you, for example, loop through the connected clients (in a collection or in a hashtable of collections or something) and send the message when appropriate. If you thread this, there won't be any problem.

Socket-based chat servers are no different. As soon as they receive a connection it spawns a new thread and passes that connection to be processed in that thread.

There are a ton of examples on the 'net (and several here on CP) that you really should take a look at. This is a basic problem that is solved almost the same way every time (sans the actual communication protocol).

 

-----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: Remoting and Events Pin
LongRange.Shooter10-Nov-03 6:04
LongRange.Shooter10-Nov-03 6:04 
GeneralEnumerating Data Sources in C# Pin
Inam10-Nov-03 4:41
Inam10-Nov-03 4:41 
GeneralRe: Enumerating Data Sources in C# Pin
Heath Stewart10-Nov-03 5:33
protectorHeath Stewart10-Nov-03 5:33 
GeneralAlternatives to databinding Pin
Wjousts10-Nov-03 4:19
Wjousts10-Nov-03 4:19 
GeneralWindows Security check fails when it should not??!! Pin
LongRange.Shooter10-Nov-03 4:16
LongRange.Shooter10-Nov-03 4:16 
GeneralRe: Windows Security check fails when it should not??!! Pin
Heath Stewart10-Nov-03 5:32
protectorHeath Stewart10-Nov-03 5:32 
GeneralRe: Windows Security check fails when it should not??!! Pin
LongRange.Shooter10-Nov-03 6:25
LongRange.Shooter10-Nov-03 6:25 
GeneralAbsolute beginner Pin
-=LoKi=-10-Nov-03 2:03
-=LoKi=-10-Nov-03 2:03 
GeneralRe: Absolute beginner Pin
Heath Stewart10-Nov-03 3:37
protectorHeath Stewart10-Nov-03 3:37 
GeneralRe: Absolute beginner Pin
-=LoKi=-11-Nov-03 2:37
-=LoKi=-11-Nov-03 2:37 
GeneralRe: Absolute beginner Pin
Heath Stewart11-Nov-03 3:04
protectorHeath Stewart11-Nov-03 3:04 
GeneralRe: Absolute beginner Pin
Husein22-Nov-03 0:19
Husein22-Nov-03 0:19 
GeneralIIsWebServer method calling problem Pin
itismydick9-Nov-03 18:51
itismydick9-Nov-03 18:51 
GeneralRe: IIsWebServer method calling problem Pin
Heath Stewart10-Nov-03 3:47
protectorHeath Stewart10-Nov-03 3:47 
GeneralRe: IIsWebServer method calling problem Pin
itismydick10-Nov-03 21:07
itismydick10-Nov-03 21:07 
GeneralRe: IIsWebServer method calling problem Pin
itismydick10-Nov-03 21:20
itismydick10-Nov-03 21:20 
GeneralRe: IIsWebServer method calling problem Pin
itismydick10-Nov-03 21:47
itismydick10-Nov-03 21:47 

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.