473,387 Members | 1,897 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

C# Server/Client

I am about to take my first crack at C# and would like some
suggestions/best practices for approaching the app I am looking to
build. Here's a simplified description of the problem :
The client application will handle displaying a countdown timer that
will be controlled by a remote administration console. I would like to
be able to assign the task of displaying the timer on 1, some, or all
of the clients. The administration console will be able to start,
pause, or reset the clock at any time. The console should be able to
display the current time left on the counter on the clients. I looked
into "Remoting" for this task, but it doesn't seem to be a great fit.

There are other tasks that the server and clients will perform, but
this is the process that will go on.

Thanks in advance!!

Nov 17 '05 #1
7 5084
I don't know why remoting wouldn't be a good fit. You are just passing
messages back and forth to synchronize timers. You don't need to sync every
second.

With remoting, you can set up an observer pattern, so that the clients
simply tap into a published event on the server. call it the Reset event.
The server, when publishing the event, will indicate the client number,
or -1 to mean all clients, and the amount of time to start at. The server
app is responsible for keeping track of what the values are on the clients
and displaying the timers.

It's a good bit tougher if you use the TCP stack or web services, since you
have a two-way communication.

To understand remoting, pick up an EXCELLENT book by Ingo Rammer called
"Advanced .Net Remoting"

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
<ag*****@optonline.net> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
I am about to take my first crack at C# and would like some
suggestions/best practices for approaching the app I am looking to
build. Here's a simplified description of the problem :
The client application will handle displaying a countdown timer that
will be controlled by a remote administration console. I would like to
be able to assign the task of displaying the timer on 1, some, or all
of the clients. The administration console will be able to start,
pause, or reset the clock at any time. The console should be able to
display the current time left on the counter on the clients. I looked
into "Remoting" for this task, but it doesn't seem to be a great fit.

There are other tasks that the server and clients will perform, but
this is the process that will go on.

Thanks in advance!!

Nov 17 '05 #2
ag*****@optonline.net wrote in news:11**********************@g14g2000cwa.googlegr oups.com:
display the current time left on the counter on the clients. I looked
into "Remoting" for this task, but it doesn't seem to be a great fit.


Because of your bare minimum requirements, TCP or even UDP would be a good choice. Its much
lighterweight.

Are all the computers on the same subnet?
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Make your ASP.NET applications run faster
http://www.atozed.com/IntraWeb/
Nov 17 '05 #3
ag*****@optonline.net wrote in news:11**********************@g14g2000cwa.googlegr oups.com:
display the current time left on the counter on the clients. I looked
into "Remoting" for this task, but it doesn't seem to be a great fit.


Because of your bare minimum requirements, TCP or even UDP would be a good choice. Its much
lighterweight.

Are all the computers on the same subnet?
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Make your ASP.NET applications run faster
http://www.atozed.com/IntraWeb/
Nov 17 '05 #4
You make a good point. Thanks for the help.

Nov 17 '05 #5
You make a good point. Thanks for the help.

Nov 17 '05 #6
You make a good point. Thanks for the help.

Nov 17 '05 #7
You make a good point. Thanks for the help.

Nov 17 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Matt | last post by:
I think this is the basic concept in ASP server-side development. My boss told me web application is NOT client-server application. I argued with him because browser is the client, and the server...
12
by: HarveyB | last post by:
I would like to generate non-modal popup windows from ASP.Net code-behind. I have tried using Client Side scripting like "function Test(){ window.open('test.htm',_blank,...
2
by: Microsoft | last post by:
I'm about to start converting my application from a old-style monolith exe (with flat files and limited database support for sharing some of the data) to a layered .NET SQL server version. I have...
15
by: Michael Rybak | last post by:
hi, everyone. I'm writing a 2-players game that should support network mode. I'm now testing it on 1 PC since I don't have 2. I directly use sockets, and both client and server do...
6
by: Ken Allen | last post by:
I am relatively new to .Net and C#, but I hav ebeen programing in other languages and done some COM work for a number of years. I am attempting to understand how to map an older program...
5
by: zorhel | last post by:
Hi. My clients will be IE, Mozilla and Opera in a Windows and *nix OS. So, my web app need to, from a server, send messages to a specific client (browser), send messages for all clients,...
0
by: Harley | last post by:
Hello, I am just learning the tcp/ip functions etc under vb.net so please look over me if this is obviouse. I have been all over looking into any functions that I didn't totaly understand and...
4
by: rs | last post by:
how I the client tell the server that the socket is closed? or this there an even that informs the server that the clients socket is close? Oh, I am using vb.net 2003 Thanks
4
by: jens Jensen | last post by:
Hello, I was given the task to build a .Net client that will talk to IBM integration server via HTTP post. The idea is that each http packet exchange should be authenticated via X09 "client...
2
by: nsaffary | last post by:
hi I hava a client/server program that run correctly when i run it in one computer(local) but when I run client on a one computer and run server run on another, connection does not stablish.(I set...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.