-
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.
✨ Implement TCP Socket Bind Listen Accept Close
- Loading branch information
1 parent
382e348
commit 62117a4
Showing
6 changed files
with
177 additions
and
30 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Net.Sockets; | ||
using System.Net; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using IL2CPU.API.Attribs; | ||
|
||
namespace Cosmos.System_Plugs.System.Net | ||
{ | ||
[Plug(Target = typeof(IPEndPoint))] | ||
public static class IPEndPointImpl | ||
{ | ||
public static void Ctor(IPEndPoint aThis, long address, int port, [FieldAccess(Name = "System.Net.IPAddress System.Net.IPEndPoint._address")] ref IPAddress _address, | ||
[FieldAccess(Name = "System.Int32 System.Net.IPEndPoint._port")] ref int _port) | ||
{ | ||
Cosmos.HAL.Global.debugger.Send("IPEndPoint - start 1."); | ||
|
||
_address = new IPAddress(address); | ||
_port = port; | ||
|
||
Cosmos.HAL.Global.debugger.Send("IPEndPoint - ok."); | ||
} | ||
|
||
public static void Ctor(IPEndPoint aThis, IPAddress address, int port, [FieldAccess(Name = "System.Net.IPAddress System.Net.IPEndPoint._address")] ref IPAddress _address, | ||
[FieldAccess(Name = "System.Int32 System.Net.IPEndPoint._port")] ref int _port) | ||
{ | ||
Cosmos.HAL.Global.debugger.Send("IPEndPoint - start. 2"); | ||
|
||
_address = address; | ||
_port = port; | ||
|
||
Cosmos.HAL.Global.debugger.Send("IPEndPoint - ok."); | ||
} | ||
} | ||
} |
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