473,406 Members | 2,343 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

c# Scalable Socket Servers

Hi,

1. I am trying to find out something close to the Overlapped IO / Completion
Ports model
provided to me by the Winsock 2 library in C#.

The two ways provided to me to move towarsds scalable servers in C# would be

- Asynchronous Sockets [BeginAccept(), EndAccept() ]
- Non-blocking Socket Methods [Poll / Select()]

I know that the Completion Ports model is the most scalable model, which can
linearly scale
to the number of CPU's you add. But C# doesnt provide me that model.

2. I also have a requirement to port my code to FreeBSD .net Framawork
(Rotor)
or MONO.net with no/least changes to my code.
Based on these two requirements I want to know what is the best model to
choose.

Any ideas / comments ??
_____________
Hades
Nov 15 '05 #1
1 2398
I/O completion ports are used internally by the BeginXXX methods in the I/O
classes.

--
Eric Gunnerson

Visit the C# product team at http://www.csharp.net
Eric's blog is at http://blogs.gotdotnet.com/ericgu/

This posting is provided "AS IS" with no warranties, and confers no rights.
".:: - Hades - ::." <de*************@softhome.net> wrote in message
news:uE**************@TK2MSFTNGP10.phx.gbl...
Hi,

1. I am trying to find out something close to the Overlapped IO / Completion Ports model
provided to me by the Winsock 2 library in C#.

The two ways provided to me to move towarsds scalable servers in C# would be
- Asynchronous Sockets [BeginAccept(), EndAccept() ]
- Non-blocking Socket Methods [Poll / Select()]

I know that the Completion Ports model is the most scalable model, which can linearly scale
to the number of CPU's you add. But C# doesnt provide me that model.

2. I also have a requirement to port my code to FreeBSD .net Framawork
(Rotor)
or MONO.net with no/least changes to my code.
Based on these two requirements I want to know what is the best model to
choose.

Any ideas / comments ??
_____________
Hades

Nov 15 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: SRLoka | last post by:
After reading the newsgroups and various .Net web sites, I have come to a conclusion that BeginReceive and BeginSend are the way to go as they use IOCompletion Ports(I have no clue what they mean...
4
by: Chris Tanger | last post by:
Context: C# System.Net.Sockets Socket created with constructor prarmeters Internetwork, Stream and TCP everything else is left at the default parameters and options except linger may be changed...
0
by: Jonas Hei | last post by:
I need to develop a scalable server which has to receive and send UDP messages. It is required to process hundreds of messages (coming from different remote computers) per second (possibly even...
2
by: Ben | last post by:
I need to send data from a client to a server. In the server code I have: s = ServerSocket.Accept() If (s.Connected = False) Then MsgBox("Unable to connect", , "Server Error") Exit Sub End...
8
by: Chris Mullins | last post by:
One of the things I've spent the last several years working on is a highly scalable socket server written in C#. The SoapBox Server has recently been tested to well over 100k simultanous users....
5
by: zxo102 | last post by:
Hi, I am doing a small project using socket server and thread in python. This is first time for me to use socket and thread things. Here is my case. I have 20 socket clients. Each client send a...
2
by: Rene Sørensen | last post by:
I'm using .NET 2.0 VS 2005 I'm creating a function that dos something similar to the. SmoApplication.EnumAvailableSqlServers() function. But for som resone I get an error or do i?. The problem...
14
by: =?Utf-8?B?TWlrZVo=?= | last post by:
I have a sync socket application. The client is blocked with Socket.Receive(...) in a thread, another thread calls Socket.Close(). This unblock the blocked thread. But the socket server is still...
1
by: Jetean | last post by:
Hi: How to make connections to multiple different Socket Servers Asyncronously? What I looking at is to have a program (C#) that log into different servers. I know to to code 1 client to 1...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.