Solved

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

Posted on 2010-09-14
4
1,282 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
[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 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

Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

Question has a verified solution.

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

Suggested Solutions

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

756 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