-
Notifications
You must be signed in to change notification settings - Fork 551
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
1,045 additions
and
492 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using IL2CPU.API.Attribs; | ||
using System; | ||
using System.Net.Sockets; | ||
|
||
namespace Cosmos.Core_Plugs.Interop | ||
{ | ||
[Plug("Interop+Winsock, System.Net.Sockets", IsOptional = true)] | ||
public static unsafe class WinsockImpl | ||
{ | ||
public static SocketError shutdown(SafeSocketHandle socketHandle, int how) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public static int recv(SafeSocketHandle socketHandle, byte* pinnedBuffer, int len, SocketFlags socketFlags) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public static int send(SafeSocketHandle socketHandle, byte* pinnedBuffer, int len, SocketFlags socketFlags) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public static int bind(SafeSocketHandle socketHandle, byte[] socketAddress, int socketAddressSize) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
source/Cosmos.Core_Plugs/Microsoft/OverlappedValueTaskSourceImpl.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using IL2CPU.API.Attribs; | ||
|
||
namespace Cosmos.Core_Plugs.Microsoft | ||
{ | ||
[Plug("Microsoft.Win32.SafeHandles.SafeFileHandle+OverlappedValueTaskSource, System.Private.CoreLib", IsOptional = true)] | ||
public static class OverlappedValueTaskSourceImpl | ||
{ | ||
[PlugMethod(Signature = "System_Void__Microsoft_Win32_SafeHandles_SafeFileHandle_OverlappedValueTaskSource__cctor__")] | ||
public static void Cctor() | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
source/Cosmos.Core_Plugs/System/Threading/OverlappedImpl.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
using IL2CPU.API.Attribs; | ||
|
||
namespace Cosmos.Core_Plugs.System.Threading | ||
{ | ||
[Plug(TargetName = "System.Threading.Overlapped, System.Private.CoreLib")] | ||
class OverlappedImpl | ||
{ | ||
[PlugMethod(Signature = "System_Void__System_Threading_Overlapped_Free_System_Threading_NativeOverlapped__")] | ||
public unsafe static void Free(NativeOverlapped* a) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} | ||
} |
Oops, something went wrong.