Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

UDP/TCP IP Listener in c#

Posted on 2011-05-04
3
Medium Priority
?
980 Views
Last Modified: 2013-11-29
I have an application that is going to be listening for TCP messages amongst other functionality.  What I want to know is where to put the listener.  Do I write it as  Windows Service or put it in the application.  I don't know much about this sort of thing, so any help would do.

Thanks

Kevin.
0
Comment
Question by:KABarrie
3 Comments
 
LVL 16

Accepted Solution

by:
Bryan Butler earned 2000 total points
ID: 35692667
0
 
LVL 15

Expert Comment

by:Russell_Venable
ID: 35699683
You should be asking yourself if it need to be a running on boot time or security aspects does it need to be in a higher context to run. If the program you are making listens on a port is being used for a business everyday type of use. You can just have it running as a startup item. If it is used as a persistent service to many people you should make it a service. It all depends on the purpose of the program. For example a irc client connects to a server the client is not a service but it does connect and listen for tcp and udp to communicate with the server. The server on the other hand is used as a service on the network as communication tool and needs to run daily for a smooth working environment so it runs as a service.  Hope that helps a bit.
0
 

Author Closing Comment

by:KABarrie
ID: 35705241
Going to make it a Windows Service.  Thanks for the links.  

Kev.
0

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Question has a verified solution.

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

Network ports are the threads that hold network communication together. They are an essential part of networking that can be easily ignore or misunderstood, my goals is to show those who don't have a strong network foundation how network ports opera…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Suggested Courses
Course of the Month14 days, 15 hours left to enroll

577 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