Solved

Windows Service to Receive TCP Packets

Posted on 2016-11-13
4
230 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 70

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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
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
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

751 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