Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Windows Service to Receive TCP Packets

Posted on 2016-11-13
4
Medium Priority
?
348 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
3 Comments
 
LVL 71

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 2000 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

Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

Question has a verified solution.

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

In real business world data are crucial and sometimes data are shared among different information systems. Hence, an agreeable file transfer protocol need to be established.
Sometimes clients can lose connectivity with the Lotus Notes Domino Server, but there's not always an obvious answer as to why it happens.   Read this article to follow one of the first experiences I had with Lotus Notes on a client's machine, my…
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…
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…

782 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