-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
In the DivertTests the DivertAsyncResult is used, which works.
However, I cannot get DivertAsyncResult to work in the NetDump example, it keeps failing with error code 87 (invalid parameter).
I modified the Send with:
var divertAsyncResult = new DivertAsyncResult();
if (!diversion.SendAsync(buffer, receiveLength, address, ref sendLength, divertAsyncResult))
{
if (!divertAsyncResult.NoError)
Console.WriteLine(divertAsyncResult.ErrorCode);
if (!divertAsyncResult.Get(250))
Console.WriteLine(divertAsyncResult.ErrorCode);
}
This is identical to the code from DivertTests but that's using a combination of different filters and divert handles. Am I doing something wrong or how can I adapt this?
What is interesting is that ReceiveAsync seems to work just fine.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels