© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
5 replies
qqdev

Async TCP server with many connections

How to create an async TCP server which can handle many connections without creating a dedicated thread for each one?

-
ReceiveAsync(...)
ReceiveAsync(...)
without
SocketAsyncEventArgs
SocketAsyncEventArgs
is blocking (when being awaited) -> ❌ I guess?
-
ReceiveAsync(...)
ReceiveAsync(...)
with
SocketAsyncEventArgs
SocketAsyncEventArgs
is not blocking -> ✅ I guess?
-
BeginReceive(...)
BeginReceive(...)
does not block and uses the (async) callback mechanism -> ✅ I guess?

Which one to use?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ C# TCP connections Help
C#CC# / help
14mo ago
tcp server readAsync is stuck
C#CC# / help
4y ago