?
Solved

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

Posted on 2010-09-14
4
Medium Priority
?
1,328 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 1500 total points
ID: 33714559
0
 

Author Closing Comment

by:madhav_ghatole
ID: 33828807
thanks
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses

765 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