Solved

Windows Service to Receive TCP Packets

Posted on 2016-11-13
4
195 Views
Last Modified: 2016-12-01
I am need to write a Windows Service application that accepts TCP/IP connections for much simultaneous connections . Something about 2000 connections at time.

I prefer if this Windows Service is async.
0
Comment
Question by:berechit
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 69

Expert Comment

by:Qlemo
ID: 41885926
What is the question here?
0
 

Author Comment

by:berechit
ID: 41886005
I need a code with one approach to this windows service.
0
 
LVL 35

Accepted Solution

by:
Gary Patterson earned 500 total points
ID: 41905707
Here's a very robust MSDN example (and article) of a scalable async socket server.  

This code should give you a very good place to start.  It is configurable to allow you to set up as many simultaneous connections as you like, and should be capable of supporting thousands of connections when run on adequate hardware and with an adequate network connection.

High Performance .NET Socket Server Using Async Winsock
https://code.msdn.microsoft.com/windowsdesktop/High-Performance-NET-69c2df2f
0

Featured Post

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

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

This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

749 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