Solved

Listener on WIndows Server 7

Posted on 2011-02-17
3
330 Views
Last Modified: 2012-05-11
I need to write a daemon that needs to run in the background on a Windows 7 Server and listen to remote client requests. On the other end will be Windows 7 desktop (Professional, may be...). Is creating a Windows Service (aka NT Service) the best way to implement this? What other options are available? Having the daemon as a web service - should that be considered? If not why? This daemon basically needs to listen to remote clients, receive encrypted login messages, by connecting to a database authenticate users and send back approval/denial message. Not sure if this matters but I will be using Borland Builder (C++) to build this  tool. Can add more details if needed.
0
Comment
Question by:olmuser
  • 2
3 Comments
 
LVL 9

Accepted Solution

by:
AriMc earned 250 total points
ID: 34929190
Personally I'd choose a dedicated Windows service for that task. If you have a web-server installed already and/or if you feel you can get the programming done more easily as a web-server script for example, then that could be better option.

Naturally you could also write it as a normal desktop application too but then it wouldn't necessarily be always available as the users can logout and exit desktop programs easily.

0
 
LVL 1

Assisted Solution

by:olmuser
olmuser earned 0 total points
ID: 34929313
From what I learn, a web service is not necessary as it is required mainly for interoprrability which is not a requirement in my case. I am only using Windows 7 on both sides (client and server) and the usage of the service is limited to connection by applications not by humans. Secondly, using web services instead of windows services has a negative impact on performance as web services use XML serialization. So Windows service becomes an automatic choice for me and of course I am not even considering an application for reasons stated above.

Having said that, I would like if @AriMc or someone else could add more to this as I am learning.
0
 
LVL 1

Author Closing Comment

by:olmuser
ID: 34990702
Comment  by self includes useful and valuable information neither found in experts exchange already nor in the expert answer.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

One of the features I've come to appreciate about Windows 7 and Windows Server 2008 R2 is the ability to pin applications to the task bar. As useful a feature as I've found this, it does have some quirks.  For example, have you ever tried pinning an…
When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now