Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6538523
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:44:45+00:00 2026-05-25T10:44:45+00:00

I have to develop a service which will continuously listen for broadcasted messages over

  • 0

I have to develop a service which will continuously listen for broadcasted messages over GPRS through TCPListener.

What project type should I use, Windows Service or Web Service?

If possible could you provide a short code sample?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T10:44:45+00:00Added an answer on May 25, 2026 at 10:44 am

    The term “Web services” usually refers to systems that listen for standard HTTP requests on port 80, most generally using SOAP, JSON or plain-old-XML. Microsoft offer several frameworks to publish and consume Web services in .NET, including WCF, IIS and rolling your own through tcplistener.

    A “Windows service” is a long-lived process that can be started automatically when the system starts. A service doesn’t itself have any intrinsic mechanism for communication: you’ll have to write that yourself.

    So you’ll want to consider what kind of communication protocol your GPRS system is going to use. If it’s broadcasting a high-level series of e.g. HTTP POST data, then a WCF endpoint hosted on IIS is probably the easiest and quickest way to go.

    Alternatively, if your GPRS system is doing low-level broadcasts of TCP packets over a known port, you’ll most likely want to create a Windows service, and then create a tcplistener when the service starts.

    The Visual Studio wizard to create a Windows service will give you the scaffolding necessary to create code that executes when the service starts. There’s a good walkthrough here: http://www.csharp-examples.net/create-windows-service/.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have to develop windows service which will copy files to different servers. So
I have to develop an application, which will request to a web service developed
I have to develop a application in .net technology which calls an external service
I need to develop a WCF server (basically a web service which will eventually
My scenary: I am trying to develop a service which will query different databases.
I have been asked to develop an application which will use data available from
I have to develop a file server service that transfer file form a specified
We will develop a web site that will have some free services and we
I have to develop an application which parses a log file and sends specific
I want to know whether unhandled exception will make WCF service crash. I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.