Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7559173
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T12:34:10+00:00 2026-05-30T12:34:10+00:00

Can anyone please enlighten me about current .NET socket techniques? Non-blocking sockets If I

  • 0

Can anyone please enlighten me about current .NET socket techniques?

  1. Non-blocking sockets

    If I set Socket.Blocking = false and use async operations – what will happen?

    Is there any method of polling multiple non-blocking sockets instead of checking them for availability one-by-one (something like trivial select() or any other mechanism, some IOCP-related may be) aside from Socket.Select()?

  2. BeginXXX and SocketAsyncEventArgs

    Are they operating on blocking sockets under the hood and just hide thread creation?

    Will manual creation of threads be equal to using BeginXXX methods?

    Is there any other pros on using SocketAsyncEventArgs other then it allows to create pool of sockets and everything related to them?

And one final question: if app is working as some kind of heavily loaded binary proxy with most logic done in single thread – what provides better scalability: non-blocking approach or async operations?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T12:34:11+00:00Added an answer on May 30, 2026 at 12:34 pm

    1: Socket.Select should do that, although I don’t tend to use that approach personally; in particular those IList get annoying at high volumes

    2: no, other way around; the blocking operations are essentially using the non-blocking in the background, but with gates. No, they don’t create threads under the hood – unless you count the callback when something is inbound. I have an example here that is serving 12k connections using SocketAsyncEventArgs – the thread count is something like 20. Among the intentions of SocketAsyncEventArgs is that:

    • it is far easier to pool effectively, without having lots of objects created/collected per operation
    • you can handle the “data is available now” scenario very efficiently without needing a callback at all (if the method returns false, you are meant to process the data immediately – no callback will be forthcoming)

    For scalability: async

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

can anyone please suggest a good code example of vb.net/c# code to put the
Can anyone please provide a link to download the .NET 3.5 SDK? I checked
Can anyone please tell me when should I use MessageContracts and when should I
Can anyone please explain me what is DataContractTranslstor and what's it's use?
Could anyone please enlighten me about how one might go about binding to a
Can anyone please give me a nice, expert but concise summary the ASP.NET compilation
Can anyone please help me discover the .NET equivalent of the following C++ code:
Can anyone please tell me whether the <location path= works when we set <authentication
Can anyone please explain to me what happens behind the scenes when you use
Can anyone please guide about how we can get exact url and store in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.