Solved

How to design a server socket using SocketAsyncEventArgs in C#?

Posted on 2010-09-14
4
1,263 Views
Last Modified: 2013-12-16
Hi experts,

I am wondering to design a high performance server socket in C# using SocketAsyncEventArgs. This socket should handle multiple client connections simultaneously. This should perform following activities,

1. Accept client connections asynchronously.
2. Receive data from clients connected to the server.
3. Send data to all or particular clients connected to the server.
4. Close all the the client connections forcefully and stop listening. Start listening again when clicking a button start listen.

I have completed #1 and #2 above with the help of samples provided at MSDN, but I could not design #3 and #4.
Please suggest me, how can I achieve remaining points above ?

It would be more appreciable if you provide sample code for it.

Thanks in advance.
0
Comment
Question by:madhav_ghatole
4 Comments
 
LVL 29

Accepted Solution

by:
Kumaraswamy R earned 500 total points
ID: 33714559
0
 

Author Closing Comment

by:madhav_ghatole
ID: 33828807
thanks
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
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…
Delivering innovative fully-managed cloud services for mission-critical applications requires expertise in multiple areas plus vision and commitment. Meet a few of the people behind the quality services of Concerto.
A company’s greatest vulnerability is their email. CEO fraud, ransomware and spear phishing attacks are the no1 threat to a company’s security. Cybercrime is responsible for the largest loss of money to companies today with losses projected to r…

914 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

21 Experts available now in Live!

Get 1:1 Help Now