Solved

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

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

760 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