© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
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#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
✅ C# TCP connections Help
C
C# / help
14mo ago
tcp server readAsync is stuck
C
C# / help
4y ago