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.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,908 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,003 questions
0 comments No comments
{count} votes

Accepted answer
  1. Bruce (SqlWork.com) 66,226 Reputation points
    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.