Looking for a C# IOCP example/tutorial

Richard Rosenheim 86 Reputation points
2024-11-04T19:48:39.2166667+00:00

I'm trying to find a good .NET example of how to do TCP networking using IOCP and C#. The examples that I've been finding uses interop calls to do IOCP. Unless I'm wrong, my understanding is that nowadays it's no longer necessary to use interop calls to do IOCP.

Just wondering if anyone can point to any good C# examples/tutorials on IOCP that doesn't utilize interop calls.

Developer technologies | .NET | Other
Developer technologies | C#
0 comments No comments
{count} votes

Accepted answer
  1. Bruce (SqlWork.com) 77,926 Reputation points Volunteer Moderator
    2024-11-04T23:16:35.9933333+00:00

    IOCP is a Windows only technology. as IOCP is an O/S service you must use p/invoke (as its only C callable), but you may find wrapper that hides this for you. under the covers .net libraries make calls to IOCP.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.