Click here to Skip to main content
15,887,027 members
Home / Discussions / C#
   

C#

 
GeneralSmall C#, VS2003, CheckedListBox, Intellisense question Pin
Robert L. Edwards4-Aug-03 11:05
Robert L. Edwards4-Aug-03 11:05 
Generalregex functions Pin
mikemilano4-Aug-03 9:40
mikemilano4-Aug-03 9:40 
GeneralRe: regex functions Pin
Eric Gunnerson (msft)4-Aug-03 9:54
Eric Gunnerson (msft)4-Aug-03 9:54 
GeneralRe: regex functions Pin
mikemilano4-Aug-03 10:27
mikemilano4-Aug-03 10:27 
GeneralBest Practice for client/server app Pin
morefire4-Aug-03 9:16
morefire4-Aug-03 9:16 
GeneralRe: Best Practice for client/server app Pin
Heath Stewart4-Aug-03 9:34
protectorHeath Stewart4-Aug-03 9:34 
GeneralRe: Best Practice for client/server app Pin
morefire4-Aug-03 13:24
morefire4-Aug-03 13:24 
GeneralRe: Best Practice for client/server app Pin
Eric Gunnerson (msft)4-Aug-03 12:02
Eric Gunnerson (msft)4-Aug-03 12:02 
To echo what Heath said, it depends on what your client server application is like. Which way does the information flow? Who initiaties the information transfer? What kind of latency requirements do you have?

To speak in general terms, if your clients ask for data and get back a response, you can choose your technology. Remoting gives you rich types, but only works with .NET programs, while web services give you reach but less richness in the type area. Neither are particularly good when the server needs to tell the client something asynchronously, though you can get away with polling or blocking calls until a timeout or something interesting happens.

Sockets give you the most flexibility, but you'll probably be writing a bit more low-level code. I wrote some C# code recently that does what you describe using sockets, and implements a nice event-based approach. The client calls a method on a object, which sends a message to the server. This gets rebuilt into an object on the server, and an event on the server object is fired. Same thing when the value comes back to the client. This gives you more flexibility, but moves you into a message-based approach rather than the RPC idiom that web services and remoting use.

Hope that helps.

GeneralRe: Best Practice for client/server app Pin
morefire4-Aug-03 13:32
morefire4-Aug-03 13:32 
GeneralRe: Best Practice for client/server app Pin
Ista4-Aug-03 18:06
Ista4-Aug-03 18:06 
GeneralMessage Closed Pin
5-Aug-03 7:21
mittencode5-Aug-03 7:21 
GeneralRe: Best Practice for client/server app Pin
Ista5-Aug-03 9:45
Ista5-Aug-03 9:45 
GeneralMessage Closed Pin
5-Aug-03 10:20
mittencode5-Aug-03 10:20 
GeneralRe: Best Practice for client/server app Pin
Ista8-Aug-03 19:27
Ista8-Aug-03 19:27 
Generalpassing objects via WebServices Pin
Raphael Amorim4-Aug-03 8:04
professionalRaphael Amorim4-Aug-03 8:04 
GeneralRe: passing objects via WebServices Pin
Heath Stewart4-Aug-03 9:27
protectorHeath Stewart4-Aug-03 9:27 
GeneralRe: passing objects via WebServices Pin
Raphael Amorim4-Aug-03 10:02
professionalRaphael Amorim4-Aug-03 10:02 
GeneralRe: passing objects via WebServices Pin
Heath Stewart4-Aug-03 10:19
protectorHeath Stewart4-Aug-03 10:19 
GeneralRe: passing objects via WebServices Pin
Raphael Amorim4-Aug-03 10:34
professionalRaphael Amorim4-Aug-03 10:34 
GeneralRe: passing objects via WebServices Pin
Heath Stewart4-Aug-03 10:39
protectorHeath Stewart4-Aug-03 10:39 
GeneralMIME filter Pin
Bog4-Aug-03 7:58
Bog4-Aug-03 7:58 
GeneralRe: MIME filter Pin
Arun Bhalla4-Aug-03 12:40
Arun Bhalla4-Aug-03 12:40 
GeneralRe: MIME filter Pin
Heath Stewart5-Aug-03 17:08
protectorHeath Stewart5-Aug-03 17:08 
Generalstring manipulation for phone numbers Pin
mikemilano4-Aug-03 7:23
mikemilano4-Aug-03 7:23 
GeneralRe: string manipulation for phone numbers Pin
Nathan Blomquist4-Aug-03 16:13
Nathan Blomquist4-Aug-03 16:13 

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.