Solved

Windows Service to Receive TCP Packets

Posted on 2016-11-13
4
33 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
4 Comments
 
LVL 68

Expert Comment

by:Qlemo
Comment Utility
What is the question here?
0
 

Author Comment

by:berechit
Comment Utility
I need a code with one approach to this windows service.
0
 
LVL 34

Accepted Solution

by:
Gary Patterson earned 500 total points
Comment Utility
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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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 …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

743 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

16 Experts available now in Live!

Get 1:1 Help Now